Saturday, March 19, 2016

The UNIX School: sed - 20 examples to remove / delete characters from a file

In this article of sed series, we will see the examples of how to remove or delete characters from a file. The syntax of sed command replacement is: $ sed 's/find/replace/' file This sed command finds the pattern and replaces with another pattern. When the replace is left empty, the pattern/element found gets deleted.

No comments:

Post a Comment