A very stupid bash question: using a variable as an argument #660
-
Hi all,
If I run
If I run in the shell these commands I have instead an empty result.
How do I must use a variable as an argument? |
Beta Was this translation helpful? Give feedback.
Answered by
NikosAlexandris
Sep 13, 2021
Replies: 1 comment 1 reply
-
Andrea, why not exclude the double quotes (as they are not appearing in your ➜ 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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aborruso
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Andrea, why not exclude the double quotes (as they are not appearing in your
input.csv
):