Showing posts with label sed. Show all posts
Showing posts with label sed. Show all posts

Monday, 21 February 2011

Directory wide search replace

Change foo to bar for all php files.


find . -name "*.php" -print | xargs sed -i 's/foo/bar/g'