From: Remy Blank <remy.blank@pobox.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Not head, not tail, maybe belly
Date: Wed, 22 Sep 2010 17:06:53 +0200 [thread overview]
Message-ID: <i7d62h$oj3$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTi=__npA061sbZVMJ1XJjU0qLzMuT9DRa_L3CYhJ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
Al wrote:
> 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.
How about combining both? Show 10 lines starting with line 20:
tail -n +20 <myfile.txt | head -n 10
-- Remy
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
next prev parent reply other threads:[~2010-09-22 15:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-22 14:53 [gentoo-user] Not head, not tail, maybe belly Al
2010-09-22 15:04 ` Maciej Grela
2010-09-22 15:11 ` Florian CROUZAT
2010-09-22 15:47 ` Al
2010-09-22 15:55 ` Alan McKinnon
2010-09-22 22:12 ` David Relson
2010-09-22 15:06 ` Remy Blank [this message]
2010-09-22 15:43 ` Paul Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i7d62h$oj3$1@dough.gmane.org' \
--to=remy.blank@pobox.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox