Awk In Unix With Examples - Linux

What is Linux awk Command?

Snippet Code


  
Rate this page :
  [ 0 votes]

Awk is abbreviated as Aho, Weinberger, and Kernighan in unix commands. This command is used to manipulate the text. Awk command checks line by line of the file to find pattern which matches the given command line. This code prints the second column data in file1.txt

file1.txt: --------- 14 15 16 15 15 11 5 56 6 5 25 1 Command: ------------ awk '{print $2}' file1.txt

Tags


Ask Questions

Ask Question