[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tail +N vs. tail -n N
From: |
Greg Jednaszewski |
Subject: |
tail +N vs. tail -n N |
Date: |
Tue, 05 Jul 2005 10:21:43 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050317) |
Hi,
When using the +N option with tail, I get the following message:
address@hidden greg]$ tail +5 foo.txt
tail: `+5' option is obsolete; use `-n 5' since this will be removed in
the future
First of all, it suggests using the "-n" option instead of the +N
option, which is not an equivalent operation.
For example, "tail +5" gives you the end of the file, starting at line
5. On the other hand, "tail -n 5" gives you the last 5 lines of the file.
Second, there does not seem to be an equivalent option for tail +N.
(end of file, starting at line N) This is very important for shell
archives. See this for more information:
http://linux.org.mt/article/selfextract
I understand that +N does not fit GNU standards for command-line
arguments, but please do not remove this functionality from tail.
Instead, I suggest adding another command line option that implements
this functionality.
Thanks,
Greg Jednaszewski
***********************************************************************************
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secured or error-free as information could be intercepted, corrupted, lost,
destroyed, received late or incomplete, or could contain viruses. The sender
therefore does not accept liability for any error or omission in the contents
of this message, which arises as a result of e-mail transmission. If
verification is required, please request a hard-copy version from the sender.
***********************************************************************************
- tail +N vs. tail -n N,
Greg Jednaszewski <=