Gentoo Archives: gentoo-user

From: Florian CROUZAT <gentoo@××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Not head, not tail, maybe belly
Date: Wed, 22 Sep 2010 15:12:21
Message-Id: 6D141799-2F75-4C0A-961B-140850A5B29D@floriancrouzat.net
In Reply to: Re: [gentoo-user] Not head, not tail, maybe belly by Maciej Grela
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. /

Replies

Subject Author
Re: [gentoo-user] Not head, not tail, maybe belly Al <oss.elmar@××××××××××.com>