Convert text files from DOS to UNIX and vice versa.

Here are few recipes to convert DOS text files to UNIX.

How do you know whether you have a DOS text file or a UNIX text file? A line feed and a carriage return terminate the DOS text files lines. UNIX uses only a line feed character. By using the Unix command file you can figure out which type of file you are dealing with.
$ file dosfile.txt 
dosfile.txt: ASCII text, with CRLF line terminators
$ file unixfile.txt 
unixfile.txt: ASCII text

$ file dosfile.txt
dosfile.txt: ASCII text, with CRLF line terminators
$ file unixfile.txt
unixfile.txt: ASCII text

To convert files back and forth from one format to another you have several options. A few of them are showed here.
 
Posted on Feb 22, 2009 by: Fred Cirera @ 14:03 Leave a comment Comments: 18

Which part of your brain is the most developed ?

Are you an analytical, logical person, or maybe you are holistic, and you trust your instinct ?

With this small brain test discover which part of your brain you are using most.

 
Posted on Oct 19, 2007 by: Fred Cirera @ 08:42 Leave a comment Comments: 10