Nawk: Difference between revisions

From Rosetta Code
Content added Content deleted
(New page: {{implementation|AWK}} nawk is "New Awk". History at http://en.wikibooks.org/wiki/An_Awk_Primer/Nawk)
 
(nawk versus oawk; nawk source code.)
 
Line 1: Line 1:
{{implementation|AWK}}
{{implementation|AWK}}


''nawk'' is another name for ''The One True Awk'', the original implementation by Alfred Aho, Peter Weinberger and Brian Kernighan.
nawk is "New Awk". History at http://en.wikibooks.org/wiki/An_Awk_Primer/Nawk

''nawk'' is "New Awk", and refers to the [http://en.wikibooks.org/wiki/An_Awk_Primer/Nawk the new features from 1985]. Versions from before 1985 would be ''oawk'' for "Old Awk". There is no reason to use ''oawk'', but some systems had both, and the [http://heirloom.sourceforge.net/tools.html Heirloom Toolchest] still includes both ''oawk'' and ''nawk''.

Because of the release of [http://www.cs.princeton.edu/~bwk/btl.mirror/ source code of The One True Awk], some [[BSD]] systems now include ''nawk'' as <tt>/usr/bin/awk</tt>.

Latest revision as of 22:00, 14 February 2011

Nawk is an implementation of AWK. Other implementations of AWK.

nawk is another name for The One True Awk, the original implementation by Alfred Aho, Peter Weinberger and Brian Kernighan.

nawk is "New Awk", and refers to the the new features from 1985. Versions from before 1985 would be oawk for "Old Awk". There is no reason to use oawk, but some systems had both, and the Heirloom Toolchest still includes both oawk and nawk.

Because of the release of source code of The One True Awk, some BSD systems now include nawk as /usr/bin/awk.