Can you look at all the code pls. Because it gives same error again:
Code:
while read string1
do
find /path -type f -exec sed -i "s/${string1}|string2|/string2/g" '{}' \;
done < string1.txt
All i want to do is searching the path, and if the files contains the expression (expressions in string1.txt) then replace them with string2
Edit:
Oh silly me, just replaced this
Code:
find /path -type f -exec sed -i "s|${string1}|string2|" '{}'\;
and worked fine. Everybody thanx all