User Tools

Site Tools


sed

Sed

  • -i modifies file in-place
  • s is search and replace
  • to use a delimiter other than /
    • use \$regex$replace$
    • where $ is any character
  • g is to replace all values of regex
sed -i "s/regex/replace/g" file
sed.txt · Last modified: 2017/11/09 02:51 by mark