Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: bakedjake
All i want to do is search my /home dir for any file that has "<?=//" in it.
I thought that
grep -l -R "<?=//" /home > out.txt
would work, but it just hangs...
Any thoughts on howto accomplish this?
find ./ -name "*.php" ¦ xargs grep "<?=//" ¦ tee out.txt
Or better yet maybe fix it all in one go with perl (back up first, use at your own risk)
find ./ -name "*.php" ¦ xargs perl -i~ -wpe 's@\<\?=//@<?php //@g'
(repeat for .inc files)