I have a bash script (rsync.sh) that works fine and has this line in it:
python /path/to/rsync_script.py $EMAIL "$RSYNC $PATH1 $PATH1_BACKUP"
I want to break the command (it's actually much longer than shown here because my variables have longer names) in two and use something like this:
python /path/to/rsync_script.py \
$EMAIL "$RSYNC $PATH1 $PATH1_BACKUP"
But when I do this I get the error:
scripts/rsync.sh: line 32: $'[email protected]\r': command not found
It puts the carriage return, \r in there.
How can I break this line up and not include the carriage return?
\rstill feels out of place. If you don't havedos2unixordtoxalready installed, re-edit the file withvim, and run:set ff=uniximmediately before:wq.