> Home > Scripts > AWK >

How to run AWK with commands in a file.

 

output to screen

$ awk -f command_file.awk  input_file

 

output to file

$ awk -f command_file.awk input_file > output_file