[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adding plus syntax to manpage
From: |
Paul Eggert |
Subject: |
Re: adding plus syntax to manpage |
Date: |
Mon, 16 Oct 2006 15:10:48 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
address@hidden writes:
> Would it be possible to add the working of this sort of usage:
> tail +2
I'd rather not, since POSIX currently requires that it be
equivalent to "tail ./+2". The man page is supposed to be
short, and I'd rather that it didn't confuse people by
documenting obsolete and nonportable usage.
You can use "tail -n +2" on modern hosts (i.e., hosts
conforming to POSIX.2-1992 and later), and "sed 1d" if your
script needs to be portable to ancient and nonstandard
programs like Solaris /usr/bin/tail where the implementation
predates the 1992 standard.