[oi-dev] nawk and awk
Peter Tribble
peter.tribble at gmail.com
Sun Oct 11 20:02:08 UTC 2015
On Sun, Oct 11, 2015 at 8:41 PM, G B via oi-dev <oi-dev at openindiana.org>
wrote:
> What are the versions of nawk and awk in 1003 OI Hipster?
>
Whatever the version of illumos it was built from.
Something like
mcs -p /usr/bin/awk
should give the illumos build the command matches.
# pkg search '\*/usr/bin/nawk'
>
Try
pkg search nawk
or
pkg search /usr/bin/nawk
(Basically, either the last component, or full pathname.)
> # pkg contents -o pkg.name,path -a ='\*/usr/bin/nawk'
>
That would be
pkg contents -o pkg.name,path -a path=usr/bin/nawk
(note, without the leading / this time)
> None of them return a package. Also 'awk --version' or 'nawk --version'
> doesn't retrun anything.
>
That's because illumos has its own awk and nawk, rather than gawk.
(Unfortunately, the regular illumos awk - the one in /usr/bin/awk - is
pretty terrible, and best avoided.)
--
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20151011/ed848e54/attachment-0005.html>
More information about the oi-dev
mailing list