TIL you can delete every second line with sed
:
Example input:
very interesting
not interesting
very interesting
not at all
$ cat <file> | sed '0~2d'
If it’s the second line that’s interesting, like:
not interesting
very interesting
not at all
very interesting
You can do:
$ cat <file> | sed '1~2d'
#bash #linux #unix