<<< Date Index >>>     <<< Thread Index >>>

Re: [TRIVIAL] head syntax



* Thomas Dickey <dickey@xxxxxxx> [Sep 18. 2003 11:49]:
> > Breaking longstanding command line syntax is about as dumb as
> > putting wildcard records in TLD zones.
> >
> > I seem to recall that the suggested change was said to break things
> > on other Unix systems.  The correct patch is probably to add an
> > "exit" statement to the end of the awk "script."
> 
> head -1
> 
> sed -e '2,$d'
> 
> (the awk solution is at best inefficient).

Well, whatever solution is used, it should not involve tail -1 at least
:)

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.