LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2008, 07:46 PM   #1
fof3
Member
 
Registered: Nov 2003
Distribution: Debian - Lenny
Posts: 174

Rep: Reputation: 30
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. ???
 
Old 12-06-2008, 08:01 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
  


Reply

Tags
debian, etch


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to convert dos to unix format kapilcool Linux - Software 3 06-15-2006 12:50 PM
How to verify wether it is a dos or unix file sathish80 Linux - Newbie 1 03-23-2006 12:34 AM
Dos to unix newlines Rotwang Linux - General 3 08-22-2005 02:45 PM
DOS -> UNIX file conversion issue inspleak Linux - Newbie 5 07-04-2004 01:24 AM
Unix to DOS text Wynd Programming 5 04-18-2003 01:14 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration