|
Home > Archive > Unix administration > July 2006 > head syntax
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| is there some posix standard or anything that specifies which syntax
head and tail should use? I have noticed that both 'head -4' and 'head
-n4' are generally supported. What the difference, is one of them newer,
is one deprecated?
| |
| Kenan Kalajdzic 2006-07-10, 1:19 pm |
| jaso <as@email.com> wrote:
> is there some posix standard or anything that specifies which syntax
> head and tail should use? I have noticed that both 'head -4' and 'head
> -n4' are generally supported. What the difference, is one of them newer,
> is one deprecated?
http://www.opengroup.org/onlinepubs...ities/head.html
--
Kenan Kalajdzic
| |
|
| Kenan Kalajdzic wrote:
> jaso <as@email.com> wrote:
>
> http://www.opengroup.org/onlinepubs...ities/head.html
>
Thank you!
I got all my answers for head there.
But now I wonder the same thing of the command tail. I looked at the
document for tail at opengroup.org, but they mentioned nothing about
'tail -5' syntax there, only 'tail -n5'. So, is 'tail -5' nonstandard?
My Unix book explains tail with -5 syntax, not -n.
|
|
|
|
|