La commande head travaille aussi sur des lignes complètes, aucune amélioration.
Mmmmh, et si il est placé APRÈS :
[adrien@localhost ~]$ cat > pi.txt
3,14159265[adrien@localhost ~]$ # j'ai fait 2 ctrl D
[adrien@localhost ~]$ cat pi.txt
3,14159265[adrien@localhost ~]$ # pas de saut de ligne
[adrien@localhost ~]$ cat pi.txt | cut -c -4 -
3,14
[adrien@localhost ~]$ # là ça saut bien une ligne
[^] # Re: Mensonge !
Posté par thedidouille . En réponse à la dépêche Fabrice Bellard bat le record des décimales de Pi. Évalué à 1.
Mmmmh, et si il est placé APRÈS :
[adrien@localhost ~]$ cat > pi.txt
3,14159265[adrien@localhost ~]$ # j'ai fait 2 ctrl D
[adrien@localhost ~]$ cat pi.txt
3,14159265[adrien@localhost ~]$ # pas de saut de ligne
[adrien@localhost ~]$ cat pi.txt | cut -c -4 -
3,14
[adrien@localhost ~]$ # là ça saut bien une ligne
Donc le head devrait être content!