|
|
|
|
Configuration: ksh
Salut,
essaye de poser ton problème dans le forum unix/linux... A+ Blux "Les cons, ça ose tout. C'est même à ça qu'on les reconnait" |
Essaye tr (man tr)
johand@horus:~$ mystring="a b c d" johand@horus:~$ echo $mystring | tr " " "\n" a b c d Un pur Carriage return donnera ceci sous les Unices johand@horus:~$ echo $mystring | tr " " "\r" d johand@horus:~$ echo $mystring | tr " " "\r"|od -ax 0000000 a cr b cr c cr d nl 0d61 0d62 0d63 0a64 0000010 Si tu veux avoir des sauts de lignes, utilise "\n" (New Line) Johan Gates gave you the windows. GNU gave us the whole house.(Alexandrin) |
Résultats pour [Shell Unix] modifier une chaine de caractère
Résultats pour [Shell Unix] modifier une chaine de caractère
Résultats pour [Shell Unix] modifier une chaine de caractère
Résultats pour [Shell Unix] modifier une chaine de caractère
Résultats pour [Shell Unix] modifier une chaine de caractère
Résultats pour [Shell Unix] modifier une chaine de caractère