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

Re: [TRIVIAL] head syntax



On Thu, 18 Sep 2003, Thomas Roessler wrote:

> 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).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net