How To REMOVE Crap In footer.php w. grep sed

penguin-beer

Lets get ride of garbage hard coded in premium themes. Only doing this because 1.) GPL and 2.) I paid for this theme, why is their copyright in it? 🙁 Do I have to buy you a beer too? More than willing too. :]

[bash]grep -lr –include=footer.php "<p id="copyright">" /home/USERNAME/public_html/wp-content/themes | xargs sed -i ‘s#<p id="copyright"><?php printf( __([^;]*; ?></p>##g'[/bash]

If this looks Greek to you, I’d recommend reading up on grep and sed documentation. There are great examples of how to use it with regex.

Published by

CodeSleepShred

Born and raised in the Pacific Northwest, there are only a few things to do during the rainy season: code, sleep, shred.