The script is putting the correct date and time in $today, but it is putting \r after each time I echo $today in the filenames. SCRIPT: #!/usr/bin/bash today=`/usr/bin/date +%y%m%d%k%M` echo $today /usr/bin/tar -czf Blah${today}.gz BlahHire.csv BlahPSRollbackHire.csv /usr/bin/tar -czf Blahreq${today}.gz BlahHiredCandidates.csv BlahBWRequisition.csv BlahBWReqCandidates.csv BlahBWCandidates.csv BlahPSRequisitions.csv ----------------------------------- OUTPUT: $ ./blah 0703161621 tar (child): Blah0703161621\r.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now /usr/bin/tar: BlahPSRollbackHire.csv\r: Cannot stat: No such file or directory tar (child): Blahreq0703161621\r.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now : command not found