Re: tail command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



on 2/4/2008 2:23 PM Bill Campbell spake the following:
On Mon, Feb 04, 2008, Scott McClanahan wrote:
On Mon, 2008-02-04 at 14:09 -0800, Scott Silva wrote:
on 2/4/2008 1:56 PM Scott McClanahan spake the following:
In centos 4 we used tail in the following way:

tail +83 file

That would tail the contents of the file starting at line 83.  In centos
5 that same command complains about the file +83 not being found.  It
appears that the + option in tail doesn't work the same way in centos 5.
Is there another easy way to grab the contents of a file starting at a
certain line number and beyond.
I think it would be tail -n +83 file
Ahh, yes.  Because it can be a line count or byte count.  The -n wasn't
necessary in the old coreutils.  Thanks alot.

The default syntax for tail for the last 20 years or so would
be ``tail -83 filename''.

That would be for the LAST 83 lines. The poster wanted to start the tail FROM line 83 to the end.

--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux