1 Comment

Nice. For the inplace flag, you could add some text to be appended to file to create a backup file, e.g:

sed -i.bak '1p' file.txt

This will create a backup file: file.txt.bak

Expand full comment