next up previous
Next: Projects Instead of Quizzes Up: APS105S Home Previous: TAs

How to Use DOS Floppy Disks on SUN Workstations

The Sun workstations in SF1106 have floppy drives. You copy DOS floppy disk files using the Mtools utilities. To get more info, type the command
 
man mtools
 
to the unix prompt to get a list of all the commands. For example, the command
 
mcopy a:FOO.TXT unixfoo.txt
 
will copy a file from the disk called FOO.TXT to a unix file called unixfoo.txt.

DOS text files end a line with two characters <carriage return> and then a <newline>. The <carriage return> causes the cursor to move to the beginning of the line and the <newline> tells it to go to the next line. In unix systems, only the <newline> is needed to do both functions, so the <carriage return> character is not needed. To get rid of the <carriage returns>, you can run
 
dos2unix unixfoo.txt > fixedfoo.txt

You don't have to do this, but it makes your program format a little better.



Jonathan Rose
Mon Dec 29 16:47:41 EST 1997