perl mass text replace with literal dollar sign
Posted
by user12145
on Server Fault
See other posts from Server Fault
or by user12145
Published on 2010-05-05T07:57:00Z
Indexed on
2010/05/05
7:58 UTC
Read the original article
Hit count: 617
trying to replace text patterns with dollar signs and ()s, can't get it to work. please help
find /var/www/vhosts/prod/xxx/ -name "*.php"|xargs perl -w -i -p -e "s/mysql_fetch_array($res,MYSQL_ASSOC)/mysql_fetch_assoc(\$res);/g"
© Server Fault or respective owner