LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dos to unix for a Directory (https://www.linuxquestions.org/questions/linux-newbie-8/dos-to-unix-for-a-directory-688824/)

fof3 12-06-2008 06:46 PM

dos to unix for a Directory
 
I am using Debian, Etch. A 'mkdir /homebackup' command, executed from a shell, created a directory named 'backup^M'. I am unable to cd into that directory, using the Tab key. ???

colucix 12-06-2008 07:01 PM

Maybe the script has been written in dos/windows and it has created a directory named
Code:

backup\r\n
adding a carriage return to the end. You can try to remove it using
Code:

rmdir backup<Ctrl-V><Ctrl-M>
where <Ctrl-V> and <Ctrl-M> have to be pressed in sequence to reproduce the ^M character. Then pass the script through the dos2unix command and everything should be fine.


All times are GMT -5. The time now is 08:31 PM.