command line

duanestubbs's picture

Find and Replace within Files

Find and Replace text in files from the command line
Search through all the files and sub-folders (remove R from -RIZ to just do current directory) and replace text within files.

grep -RlZ {search text in files} . \ | xargs -0 -l  sed -i -e 's/{find}/{replace}/'

Example:
Subscribe to RSS - command line