Quote:
Originally Posted by ilikejam
|
i got it pretty much working now except for the prompt:
for f in `find . -type f`;
do if grep "http://www.\$domain.com/nl/dirs/file_nl.php?loc=\$Var&var=\$var&file=file" "$f";
then read ANSWER; if [ "x$ANSWER" == "xyes" ];
sed -i 's/http:\/\/www.$domain.com\/nl\/
/http:\/\/www.$domain.com\/NL\//g' "$f";
fi; done
i get an error:
-bash: syntax error near unexpected token `fi'
or this
for f in `find . -type f`;
do if grep "http://www.\$domain.com/nl/dirs/file_nl.php?loc=\$Var&var=\$var&file=file" "$f";
read ANSWER; if [ "x$ANSWER" == "xyes" ];
then sed -i 's/http:\/\/www.$domain.com\/nl\/
/http:\/\/www.$domain.com\/NL\//g' "$f";
fi; done
keep returning an error:
-bash: syntax error near unexpected token `done'