Команда awk

Средство шаблонного сканирования и обработки позволяет выполнять скрипты.

Синтаксис

awk [program | -f program file] [flags / variables] [files]

-f program fileRun an awk script from the specified file instead of from the command line.
variableInitializes the awk variable with the specified. Синтаксис is variable=value

The awk program can consist of one or more awk commands separated by a \n or semicolons.

Примеры

awk myscript.sh

In the above example this command would execute the awk script "myscript.sh".

Обратно к списку команд