awk — Pattern Scanning and Processing Language

Synopsis

/usr/bin/awk [-f progfile] [-Fc] ['prog'] [parameters] 
  [filename...] 
/usr/xpg4/bin/awk [-F ERE] [-v assignment...] 
  'program' | -f progfile... [argument...] 

Description

The awk command is a complete programming language that is very useful for computation and pattern matching. The name awk is an acronym composed of the last initials of the three developers of the language: Aho, Weinberger, and Kernighan. The /usr/xpg4/bin/awk command is described on the nawk(1) manual page. The nawk (new awk) command is a greatly enhanced and optimized version of awk.

The /usr/bin/awk command scans a list of input files for lines that match any of a set of patterns specified in prog . The prog string ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.