bash script - don't understand error
I wrote my first shell script to copy files for backup:
cp /media/A2AC7FD5AC7FA289/zip/Rohan.ts /media/KINGSTON/Store
cp /media/KINGSTON/Store/roback.tc /media/A2AC7FD5AC7FA289/zip
The commands work when typed individually at a terminal, but when I run the script, I get an error about 'invalid argument', because it seems that \r has been appended to the original line. See attached screenshot.
What am I missing?
Last edited by itsnew2me; 11-23-2012 at 06:19 PM.