Mark Schonbach on Sun, 3 Feb 2002 22:00:26 +0100 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 3 Feb 2002, Kyle R . Burton wrote: > Is there a standard utility out there that can print out all the lines > from a file except the first n? > > Head can get you the first n, tail can get you the last n. Is there > something that can get you m-n? tail +n filename from man tail: If the first character of N (the number of bytes or lines) is a `+', print beginning with the Nth item from the start of each file, otherwise, print the last N items in the file. [pts/6] [3:48pm] [mark@helios] [~] > cat testfile 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [pts/6] [3:48pm] [mark@helios] [~] > tail +5 testfile 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Mark Schonbach http://www.markbach.com/ PGPID: 2068B0F1 fp D161 176B 74FD D137 6B2C 052F D801 29A8 2068 B0F1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (SunOS) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjxdonAACgkQ2AEpqCBosPFuEgCeMHyzqPBuFbynRDPTWSDGKfvI m3UAnipuqKlKUZlKh85m3ipTq7YOEtNE =R3HN -----END PGP SIGNATURE----- ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|