I am trying to run a bash script in Visual Studio Code using the bash shell.
What I'am trying to do is to read a .csv
file within a directory "OneDrive - research institution project/files"
using sed 1d $p_path$csv_name | while IFS=, read -r gcm xml_nm xml_m co2con batchy
.
Besides the scripting for reading the .csv file, which works because it has been already used, everytime I run it for my folder I get problems due to the blank spaces in the folder path.
I already tried to use \
, and both double and single quotes (
p_path = "OneDrive\ -\ research\ institution\ project/files"
or
p_path = 'OneDrive - research institution project'/files
or
p_path = "OneDrive - research institution project/files"
but nothing worked so far, returning always errors like:
sed: unknown option -- \
Assuming that I cannot change the name of the directory, is there a way to solve the problem?