[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] ms to unix
Gaetan GUYODO <gaetan.guyodo@lrb.ap-hop-paris.fr> wrote:
> j'ai des ^M à la fin de toutes les lignes et je dois les virer...
> je pensais retoruver une commande genre ms2unix ou autre, mais rien,
> je trouve pas.
dos2unix dans le package sysutils (Debian)
vbstefi30:/home/arnaud# apt-get install sysutils
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
sysutils
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.2kB of archives. After unpacking 160kB will be used.
Get:1 ftp://ftp.skynet.be testing/main sysutils 1.3.8.5.1 [40.2kB]
Fetched 40.2kB in 2s (15.7kB/s)
Selecting previously deselected package sysutils.
(Reading database ... 115954 files and directories currently installed.)
Unpacking sysutils (from .../sysutils_1.3.8.5.1_i386.deb) ...
Setting up sysutils (1.3.8.5.1) ...
vbstefi30:/home/arnaud# dos2unix -h
tofrodos Ver 1.4 Converts text files between DOS and Unix formats.
Copyright (c) 1996-1999 by Christopher S L Heng. All rights reserved.
Usage: dos2unix [options] [file...]
-a Always convert (DOS to Unix: kill all CRs;
Unix to DOS: convert all LFs to CRLFs)
-b Make backup of original file (.bak).
-d Convert DOS to Unix.
-e Abort processing files on error in any file.
-f Force: convert even if file is not writeable.
-h Display help on usage and quit.
-o Overwrite original file (no backup).
-p Preserve file owner and time.
-u Convert Unix to DOS.
-v Verbose.
-V Show version and quit.
vbstefi30:/home/arnaud#
-- arnaud :: http://vbstefi60.fapse.ulg.ac.be/~arnaud/
_______________________________________________
Linux Mailing List
Archives: http://www.unixtech.be/mailman/listinfo/linux