Dos files lines end with control-M control-J, while unix files end with control-J. If you look at a dos ascii file in unix you will see the control-M. Control-M is the carriage return and control-J is the line feed. In order to display a dos ascii file in unix correctly you must remove the control_M. There are a number of ways to do this. One convenient method is to make a small shell script with the contents, #/bin/sh cat $1 tr -d '\015' >$2
The file might have a descriptive name such as dos2unix and of course it must be executable. It is used in this fashion.
Dos2unix garbage.dos garbage.unix
You substitute the real file name for garbage.dos and make up the name for garbage.unix. What the file does is delete the octal number 15 which is control-M Such a file exists in the /home/ beckman/pub directory. Since you have access to this directory you can use it as long as you use the absolute path to address it. You could also copy it to your directory if you like, or put the entire directory which contains it in your path.
A similar approach is used within Perl.
HTH/Bill
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>