vi <file>
:set ff=unix
:wq

will do it fine



A 08:11 27/11/2002 -0500, vous avez écrit :
>will dos2unix do what he wants?
>
>Steve
>
>
>Steve Howard
>Software Trainer
>Information Technology Services
>Kennesaw State University
>770-423-6895
>
>
>>>> [EMAIL PROTECTED] 11/27/02 07:19AM >>>
>Mikevl wrote:
>
>>Hi
>>
>>On the odd occasion I have stored scripts like smb.conf and crontab on
>a
>>Windows file system i.e. my notebook for transporting from one Linux
>machine
>>to another. This inevitably leads to corruption of the file.
>Characters
>>appear to get added to the end of each line and heaven knows where
>else.
>>
>>Is there any way to "Clean" a file once it put back on my/any Linux
>system?
>>I have found that dragging the file from Linux PC to Linux PC over
>the
>>network helps but this seems extreme.
>>
>>
>>Many thanks
>>
>>Mike
>>  
>>
>For text files,
>lines in Windows usually is terminated by  CR-LF (0D 0A in Hex),
>however, usually lines in Linux terminated only by LF (0A in Hex).
>To remove the CR (carriage-return), you can use tr command (see man
>tr)
>Try this:
>tr -d '\015' < input_file > output_file
>this will delete all CRs (\015 in octal)  in input_file.
>
>lawu
>
>
>
>-- 
>redhat-list mailing list
>unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe 
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
>-- 
>redhat-list mailing list
>unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
                        - * - * - * - * - * - * -
Bien sûr que je suis perfectionniste !
Mais ne pourrais-je pas l'être mieux ?
        Thierry ITTY
eMail : [EMAIL PROTECTED]               FRANCE



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to