I have a file, script.sh, like this:
#!/bin/bash
awk -F@ '{ print $1 } file.csv
This prints column 1 of file.csv.
I'd like to be able to run script.sh with an argument such as ./script.sh 3 which means it will instead print column 3. Or ./script.sh 10, which means it will instead print column 10.
How can I can the command line argument to AWK in this way?
 
     
    