I want to represent the columns by whats in a txt file. So the columns.txt file contains "$2$3" and the test.txt file contains "bob tom jones jon"
I have
#!/bin/bash
columnsVar=`cat columns.txt`
echo "Columns edited: $columnsVar"
awk ' {print $columnsVar }' test.txt
But it prints out all the columns.
Also, something like this just gives me an error
awk ' {print `cat columns.txt` }'
Any suggestions?