Conversion de format ASCII

Fermé
lsda26 Messages postés 68 Date d'inscription mardi 3 avril 2007 Statut Membre Dernière intervention 6 septembre 2013 - Modifié par lsda26 le 23/08/2013 à 09:28
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 - 3 sept. 2013 à 12:33
Bonjour,
Lorsque je lance la commande file sur un fichier,j'ai apparemment un texte en format: ASCII English text, with very long lines, with CRLF, CR, LF line terminators, with escape sequences

et je le voudrait dans le format: ASCII text, with CRLF line terminators

J'ai beaucoup de fichier à recoder.

Je pense que avec recode on doit pouvoir les convertir mais je n'arrive pas à trouver la bonne syntaxe...

Sinon y a t-il un autre moyen de convertir des fichiers par commande linux sous debian?



A voir également:

4 réponses

zipe31 Messages postés 36402 Date d'inscription dimanche 7 novembre 2010 Statut Contributeur Dernière intervention 27 janvier 2021 6 407
23 août 2013 à 09:44
Salut,

Essaye déjà une conversion avec "dos2unix" (à installer le cas échéant) :

$ file log 
log: ASCII text, with CRLF line terminators

$ dos2unix log 
dos2unix: converting file log to Unix format ...

$ file log 
log: ASCII text

0
lsda26 Messages postés 68 Date d'inscription mardi 3 avril 2007 Statut Membre Dernière intervention 6 septembre 2013
23 août 2013 à 11:33
cela ne semble pas fonctionner:
dos2unix: Skipping binary file tel2.txt
0
up
0
dubcek Messages postés 18718 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 22 mars 2024 5 615
3 sept. 2013 à 12:33
0