Hi I am working on a program that reads a file with multiple columns and was curious how to specify the columns to be manipulated in the command line.
For example the file may look something like:
Column1 Column2 Column3 Column4 Column5 Column6
AC 82542 3525 GG 154124 541556
I would like to be able to type either "column1" or "column4" in the command line and have they print out the contents of the column put in as input as well as the contents of the two columns that follow.
Given the file above and typing "column4" on the command line, I would like the output to be:
GG 154124 541556
I would greatly appreciate all help.
Thanks a lot.
Drossy