Provided my admin with a shell script to rename a few folders, but for some reason those folders now contain carriage returns in the name (the script worked fine in UAT, and I'm not quite sure what the difference is between the two environments.) My application creates a folder if it can't find it, so now I have two folders containing files that need to be merged.
So if I have folders: testfolder\r and testfolder, how would I correctly write the following command to move all files from the "CR" folder into the correct folder, preserving the contents of the correct folder in the event of any filename collisions?
mv testfolder\r/* testfolder/