I created a file in Excel and ftp'd the file over to my Linux machine. In the file were a bunch of mkdir commands. Now all of the newly created directories have a carriage return at the end of them. I can find the directories using this command:
find . -type d -name *$'\r' but when I attempt to remove them using this command:
find . -type d -name *$'\r' | xargs rm-rf it doesn't work - nothing gets removed. The directories are still there and they still have carriage returns on them.
Can you help me create a command that will remove those pesky '\r's? Thanks.
P.S. I'm using RHEL 5.3