Simple script to copy files, getting \r's at end of cmd
I made a simple script (first one) to copy the mysql backups to a subdirectory and append the day. My desire to to have a copy for each day of the week, each week so I can go back to one if there's trouble.
the script (portion) looks like this:
# Set the DAY variable
cp mysql.sql daily_copies/mysql.sql.$DAY
However the resulting filename in the subdirectory daily_copies endds up getting two carriage returns added so that the filename ends up as
Even if I take the $DAY variable off the filename and just do the copy, the resulting filename is
What am I doing wrong?
Thanks for the help