z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Controlling awk output

z/OS UNIX System Services User's Guide
SA23-2279-00

By default, awk output is written to your workstation screen. You can save the output of an awk program in a file by using output redirection. To do this, put:
>filename
on the end of any awk command line. For example:
awk –f progfile datafile >outfile
writes all the output from the awk program to a file named outfile. In this case, the output does not appear on the workstation screen.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014