Grep

grep & replace

  1. Starting in current directory, grep all files and replace foo with bar
    • grep -rl "foo" . | xargs -0 sed -i 's/foo/bar/g'
  2. Another powerful solution is to install & learn rpl
    • dnf install rpl
    • man rpl