10 Basic examples of SED to perform per line action (print/delete)

In this article I will show you various sed expressions which can be used and combined to print or delete specific line from a file IMPORTANT NOTE: My examples provided are only to print the action performed, to use the same for delete action remove ‘-n’ and replace ‘p’ with ‘d’ on individual command To … Read more