home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: atrm Chapter 2
UNIX Commands
Next: Reference: banner
 

awk



awk

 [

options

] [

program

] [

var



=



value

 ...] [

files

]

Use the pattern-matching program to modify the specified files . awk has been replaced by nawk (there's also a GNU version called gawk ). program instructions have the general form:



pattern



 { 



procedure



 }

pattern and procedure are each optional. When specified on the command line, program must be enclosed in single quotes to prevent the shell from interpreting its special symbols. Any variables specified in program can be assigned an initial value by using command-line arguments of the form var = value . See Section 11 for more information (including examples) on awk .

Options

-f  file

Use program instructions contained in file , instead of specifying program on the command line.

-F c

Treat input file as fields separated by character c . Default input field separator is space or tab.


Previous: Reference: atrm UNIX in a Nutshell: System V Edition Next: Reference: banner
Reference: atrm Book Index Reference: banner

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru