Skip to content

A very stupid bash question: using a variable as an argument #660

Answered by NikosAlexandris
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

Andrea, why not exclude the double quotes (as they are not appearing in your input.csv):

➜  p="a a,b" ;echo "$p"
a a,b

➜  mlr --csv cut -f "$p" input.csv
a a,b
1,2
3,5
4,7

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aborruso
Comment options

Answer selected by aborruso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants