Delete specific line from a file with sed

/ Published in: Bash
Save to your folder(s)

For deleting a line from a file without open the file you can use sed.

For example, it has been very useful many times for me after anoying messages from ssh when a host I use to connect change the IP...

And sometimes you don't know the line number but you know a specific word from this line.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.