Bonjour,
Quelqu'un pourrait-il m'expliquer pourquoi dans le cas noté ci-dessous, je suis obligé de traiter 2 fois mon fichier pour obtenir un format unix???
Par avance merci pour vos explications....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 [XXX@YYY RRR]$ file * toto.txt: ASCII text, with CRLF, CR line terminators [XXX@YYY RRR]$ dos2unix toto.txt [XXX@YYY RRR]$ file * toto.txt: ASCII text, with CRLF line terminators [XXX@YYY RRR]$ dos2unix toto.txt [XXX@YYY RRR]$ file * toto.txt: ASCII text
Nb : J'ai finalement remplacé la commande dos2unix par la commande tr qui fonctionne trés bien "tr -s '\r\n' '\n' < entree.txt > sortie.txt"
Partager