[PATCH] tail -n not supported in all OSs
- From
Jari Aalto <jari.aalto@cante.net>
- Date
- Oct 16, 2007, 16:57 UTC
- Message-ID
- <1192553837-18302-1-git-send-email-jari.aalto@cante.net>
SunOS/Solaris tail(1) does not support option '-n'. The following patches change occurrances of:
tail -n <N>
to
tail <N>
--------------------------------------------------------------------- REFERENCES:
User Commands TAIL(1)
NAME
tail - output the last part of filesSYNOPSIS
tail [OPTION]... [FILE]...- - -
$ uname -a SunOS host 5.9 Generic_118558-35 sun4u sparc SUNW,Serverblade1
$ echo | tail -n 1
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]