btoone
4/3/2012 - 3:54 AM

global-search-replace.sh

# 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