4 ms·
NP. 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 f
by vram22 10y ago
NP. 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.