[oi-dev] nawk and awk

ken mays maybird1776 at yahoo.com
Sun Oct 11 20:38:36 UTC 2015


Hi,
pkg install system/extended-system-utilitiespkg install text/gawk
~ Ken 


     On Sunday, October 11, 2015 1:02 PM, Peter Tribble <peter.tribble at gmail.com> wrote:
   

 

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/
_______________________________________________
oi-dev mailing list
oi-dev at openindiana.org
http://openindiana.org/mailman/listinfo/oi-dev

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20151011/8f0001b1/attachment-0005.html>


More information about the oi-dev mailing list