I am reading a csv file in bash script as follows:
resource='/data/bscs/' while IFS='|'read seqid fname fpath do echo "FILENO: $seqid" echo "FILENAME: $fname" echo "FILE_PATH: $fpath" done < "report.csv"
My csv file has following values :
I want the $resource to expand inside $fname. Instead, I am getting this output:
FILENO: 3 FILENAME: sample1.txt SOURCE PATH: $resource/operation
I have tried the following:
How can I achieve this?