Skip to content

Instantly share code, notes, and snippets.

@btoone
Created April 3, 2012 03:54
Show Gist options
  • Select an option

  • Save btoone/2289169 to your computer and use it in GitHub Desktop.

Select an option

Save btoone/2289169 to your computer and use it in GitHub Desktop.
# global search and replace
find test/ -type f | xargs sed -i .old -e "s/test/example/g"
# display control/non-printable characters
sed -n 'l' input.txt
# backup a file before changing it by adding a suffix
sed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment