From: | Remy Blank <remy.blank@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | [gentoo-user] Re: Not head, not tail, maybe belly | ||
Date: | Wed, 22 Sep 2010 15:07:39 | ||
Message-Id: | i7d62h$oj3$1@dough.gmane.org | ||
In Reply to: | [gentoo-user] Not head, not tail, maybe belly by Al |
1 | Al wrote: |
2 | > I am looking for a program similar to head or tail. It should display |
3 | > a given range of lines or take a line and a context number like grep. |
4 | |
5 | How about combining both? Show 10 lines starting with line 20: |
6 | |
7 | tail -n +20 <myfile.txt | head -n 10 |
8 | |
9 | -- Remy |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |