Tuesday 7 February 2012

Unix: Search and replace script

Simple Unix command to replace text within a directory.

find app/views/ -type f -print0 | xargs -0 sed -i 's/SearchText/ReplaceText/g'

No comments:

Post a Comment