Hi all,
Can anyone shed some light as to why this is not working?
for i in `cat wordlist.txt | dos2unix | sed -e 's/ *$//'`
do
sed -e 's@$i@<a href=http://www.domain.com>$i</a>@g' article.txt
done
I've also tried:
perl -pi -e 's@$i@<a href=http://www.domain.com>$i</a>@g' $file
The worlist.txt file consist of words one line at a time:
word1
word2
word3
The article file consist of ...well one file with 50 articles all apended to each other.
Thanks for any help! :confused: