/ Published in: Bash
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.
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.