[GRLUG] unix2dos? No... FLIP.

Greg Folkert greg at gregfolkert.net
Sat Aug 24 14:03:01 EDT 2013


On Sat, 2013-08-24 at 12:19 -0400, Eric Beversluis wrote:
> I'm reading in Sobell, _Linux Commands..._, where he talks about
> unix2dos being necessary to send Linux text files to a Windows machine,
> and am confused.
> 
> I think that I successfully send text files back and forth between
> Linux, Windows and Mac all the time without having to use this utility.
> Is this something that is obsolete in more modern operating systems? Or
> do the text editors now handle this automatically?
> 
> Thanks.

First off, how old is the Sobell book/reference? He has been writing for
years and could be 10+ years old. This might be a moot point anymore
since most editors, Windows or Mac or Linux just write it the way the
original file was.

In any case, I just use "flip" for text files. Flip does the same thing
the "unix2dos" and "dos2unix" does. Doing the change to the file,
depending on what it sees and changes it to the other one. Which is
fixing Carriage Return-Line Feed issues Windows seems intent on using.
(aka ^M)

And Most things in Linux can and do deal with Windows erroneous ways of
doing things. Same thing with OSX. I've not had to deal with this
particular thing since about 2004 or 2005.

Earlier Windows (Pre-XP) and many tools/editors from those times, on the
other hand, many times can't.
-- 
greg at gregfolkert.net
PGP key 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C
"Hug the shore; let others try the deep."
    -- Virgil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20130824/9377e423/attachment.pgp>


More information about the grlug mailing list