1 |
On 22 sept. 2010, at 17:04, Maciej Grela wrote: |
2 |
|
3 |
> 2010/9/22 Al <oss.elmar@××××××××××.com>: |
4 |
>> Hi, |
5 |
>> |
6 |
>> I am looking for a program similar to head or tail. It should display |
7 |
>> a given range of lines or take a line and a context number like grep. |
8 |
>> |
9 |
>> Any suggestions? Thanks in advance. |
10 |
>> |
11 |
> |
12 |
> grela@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p' |
13 |
|
14 |
|
15 |
Best solution so far, but useless use of cat, and the subshell overhead of the pipe. |
16 |
|
17 |
----- |
18 |
Florian. |
19 |
/ For security reasons, all text in this mail |
20 |
is double-rot13 encrypted. / |