On 22 sept. 2010, at 17:04, Maciej Grela wrote:

> 2010/9/22 Al <oss.el...@googlemail.com>:
>> Hi,
>> 
>> I am looking for a program similar to head or tail. It should display
>> a given range of lines or take a line and a context number like grep.
>> 
>> Any suggestions? Thanks in advance.
>> 
> 
> gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'


Best solution so far, but useless use of cat, and the subshell overhead of the 
pipe.

-----
Florian.
/ For security reasons, all text in this mail 
  is double-rot13 encrypted. /


Reply via email to