's/{old value}/{new value}/'like
$ echo The tiger cubs will meet | sed 's/tiger/wolf/'which of course you can pipe to a new file.
The wolf cubs will meet
The article mentions that sed can change any printable character with another printable character, but use tr instead for unprintable characters. It also discusses append and insert.
No comments:
Post a Comment