4 ms·
Thanks for the introduction to 'sed 1d', which is something I've somehow never come across and resorted to horrible head|tail hacks to strip fixed header lines
by shabble 10y ago
Thanks for the introduction to 'sed 1d', which is something I've somehow never come across and resorted to horrible head|tail hacks to strip fixed header lines off things.
- vram22 10y agoNP. You may know this, but there is also 'sed nq' where n is a number. E.g.: sed 15q file.txt which is like the 'head' command - prints the 1st 15 lines of file.txt and then stops.