Find and replace in-place in files on Linux

sed -i -- 's/PATTERN/REPLACEMENT/g' *
  • The -i means "in-place"
  • The -- tells sed that this is the end of the options. Otherwise, it might interpret hyphens in the script as options