awk linux code example

Example 1: awk bash

awk(1posix) - pattern scanning and processing language

Example 2: awk command

awk -F 'some_delimiter' '{print $3}' file.txt
#Gets third match pattern between specific delimiter
#Ex
echo 'Hi_New_World!' | awk -F '_' '{ print $3}' 
World!

Example 3: awk meaning in linux

AWK (awk) is a domain-specific language designed for text processing and typically used as a data extraction and reporting tool. Like sed and grep, it is a filter, and is a standard feature of most Unix-like operating systems.