I have a unix shell variable, FOO = "bar"
, which I want to insert in a command directly in front of an underscore. I implemented this like so:
$ program.py --in_path ~/dir/$FOO_file_20210607.csv
This interprets the variable being dereferenced as $FOO_file_20210607
, not $FOO
.
Is there a way to parenthesize FOO
to isolate it from the following statement?