passing command line arguments to awk
Don Steiny
steiny at scc.UUCP
Sun Sep 21 11:38:58 AEST 1986
In article <753 at moscom.UUCP>, de at moscom.UUCP (Dave Esan) writes:
> >
> > I surrender -- is it possible to pass command line arguments to awk?
> > If so - how.
awk ' statement ; . . . ' file
be sure and use single quotes! Lots of awk characters have
special meaning to the shell. The following prints the uids in
the password file from highest to lowest:
awk -F: '{ print $3 }' | sort -n -r
--
scc!steiny
Don Steiny @ Don Steiny Software
109 Torrey Pine Terrace
Santa Cruz, Calif. 95060
(408) 425-0382
More information about the Comp.unix
mailing list