"tail" command does not work as advertised

Chris Sutcliffe ir0nh34d@gmail.com
Wed Mar 3 13:01:00 GMT 2010


>> Note that the +N notation is specific to --lines=, not the '-n'
>> shorthand.
>
> Wrong - the +N notation also works with -n:
>
> ps -a | tail -n +5

Ah, I was confused since 'tail -5' still works, but:

> This is a side affect of the change to the newer POSIX standard.
>  http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails

This explains it.

Cheers!

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list