Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: 2 directories showing same name< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 09 2007,15:06 QUOTE

The ^M character is not uncommon if you tend to switch between Windows and Linux a lot. If you edit a file in Windows it will insert ^M whenever you add a line break. If you stick with Linux exclusively, or don't use Windows to edit files, you will likely never see this issue.

^M is technically a non-printing character. Some applications handle it differently than others. As ^thehatsrule^ suggested, your terminal most likely interpreted it as a line break rather than a printable character, so it made a new line rather than displaying it in text.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 09 2007,15:11 QUOTE

Thanks mik, that's a very helpful answer.

Yes, I was aware that Linux and MS use different EOL characters; that MS uses 2 and Linux only 1.  I've faced the opposite issue before; dealing with a Linux file under MS.  Now I know to be more careful in this direction as well.

Plenty of thanks,
John
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 09 2007,17:43 QUOTE

Some text editors for Windows, such as UltraEdit (a commercial product), have a built-in feature to convert between DOS and UNIX format, and will edit a file in UNIX format if it is already in UNIX format. I wouldn't be surprised if there are free/open-source editors that will do this too. This can be very useful for editing Linux files in Windows, especially as the Linux dos2unix command has an annoying habit of changing file permissions when it converts a file.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Dec. 09 2007,18:37 QUOTE

Quote
I wouldn't be surprised if there are free/open-source editors that will do this too.

Such as (g)vim.
http://www.vi-improved.org/wiki/index.php/FileFormat


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: Dec. 09 2007,19:42 QUOTE

beaver can do the conversion too.
Back to top
Profile PM 
12 replies since Dec. 08 2007,17:45 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: 2 directories showing same name

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code