Unix administration - head syntax

This is Interesting: Free IT Magazines  
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]

Author head syntax
jaso

2006-07-10, 1:19 pm

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
jaso

2006-07-11, 8:10 am

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com