How Do I Print a Column in Linux?
Contents How Do I Print the First Column in Linux? the First Column of Any File Can Be Printed by Using $1 Variable in Awk. How Do I Print the Last Column in...
Contents
How do I print the first column in Linux?
The first column of any file can be printed by using $1 variable in awk.
Must Read
How do I print the last column in Linux?
Use awk with field separator -F set to a space ” “. Use the pattern $1==”A1” and action {print $NF} , this will print the last field in every record where the first field is “A1”.