I have a dataset with 119 columns separated by a space and like to select columns (3,7,11,…,47,51), (52,53,54,…,118,119) and print them out to another file. How can I do this using awk?
Input file
c1 c2 c3...c119
Output file
c3 c7 c11 ... c51 c52 c53 c54 ... c118 c119
Thanks for your help
1 Answer