|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Limit output to range of lines
Some handy information when you want to limit output to a given range of lines... Example, output only lines 1 to 20:
Code:
sed -n 1,20p file | next-tool...
__________________
www.tacoshack.xyz |
|
|||
There is nothing you can't do with the standard text editor:
Code:
printf '<first line>,<last line>p\nQ\n' | ed -s <filename> |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ksh: wrap lines? | Skinny | OpenBSD General | 11 | 3rd May 2013 11:30 PM |
No range from new nic | divadgnol67 | OpenBSD General | 2 | 25th October 2010 01:47 AM |
ftp client port range | kondziq | FreeBSD General | 1 | 16th June 2010 01:31 AM |
Csh - range expansion? | ivanatora | Programming | 8 | 4th November 2008 03:16 AM |
Putting Lines to Together. | bigb89 | Programming | 4 | 24th September 2008 03:59 AM |