Relative Content

Tag Archive for bashshellhive

How to include a shell variable in the file name of a csv from hive

I’m running a script that will be automated to run every quarter so I would like to include the dynamic date variable in the name of the csv output at the end of this script. Here is the relevant snippet, it works fine without the $qtr in the file name, but when I add it to the filename, the resulting .csv is unreadable.