Tuesday, December 11, 2012

Linux recursively find and replace in files from command line using sed



find ./ -type f -exec sed -i 's/original_string/string_to_replace/' {} \;


As found on this page: http://www.jonasblog.com/search-and-replace-in-all-files-within-a-directory-recursively

No comments:

Post a Comment