Linux commands : awk, sed, grep, expect
awk:
awk command treats the spaces as a delimiter for fields by default.
awk 'command' <file-name>
awk '{print}' awkcommand.txt
awk '{print $1}' awkcommand.txt # it will show the first field
here we put $1 to get the first field of each line.
reme...
abinashmishra.in2 min read