How to print specific columns using awk?

How to print specific columns using awk?

Hey Toby

To print specific columns using awk, you can use the following command:

awk '{print $n}' filename

Replace “n” with the column number you want to print and “filename” with the name of the file containing the data. This awk command will extract and print the specified column (n) from each line in the file.