www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_FAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4B8DD7DF.6090006@redhat.com> |
Date: | Tue, 02 Mar 2010 20:30:39 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, pmcferrin AT columbus DOT rr DOT com |
Subject: | Re: "tail" command does not work as advertised |
References: | <4B8DCB6C DOT 3010207 AT columbus DOT rr DOT com> <2bf229d31003021901g4c7f3b8fu340c1be2886d5f3 AT mail DOT gmail DOT com> |
In-Reply-To: | <2bf229d31003021901g4c7f3b8fu340c1be2886d5f3@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enig4DF058DB0C7AA09185865B01 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable According to Chris Sutcliffe on 3/2/2010 8:01 PM: >> The "tail +4" commands does not work as advertised. When given such com= mand >> (advertised in man command), it complains it can't open the file. With = the >> command "tail +5 -", it produces the desired output with some junk on >> standard output. >=20 > As per the tail manpage: >=20 > -n, --lines=3DN > output the last N lines, instead of the last 10; or use > +N to output lines starting with the Nth >=20 > Note that the +N notation is specific to --lines=3D, not the '-n' > shorthand. Wrong - the +N notation also works with -n: ps -a | tail -n +5 --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig4DF058DB0C7AA09185865B01 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuN1+MACgkQ84KuGfSFAYCmIACgqmWd8gKIsI1a5Ll+5BBFl3KC kS4An0RHSswE9B2y72v5sT3IhfG/FTde =5ih5 -----END PGP SIGNATURE----- --------------enig4DF058DB0C7AA09185865B01--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |