jonction de lignes

Αρχική Σελίδα

Reply to this message
Συντάκτης: Sylvain Pogodalla
Ημερομηνία:  
Προς: Michel Karatchentzeff
Υ/ο: liste Guilde
Αντικείμενο: jonction de lignes
Bonjour,

    Michel> exemple, partant du fichier contenant les lignes
    Michel>  A
    Michel>  B
    Michel>  C
    Michel>  D
    Michel>  E
    Michel>  F


    Michel>  je souhaite obtenir le fichier
    Michel>  A B 
    Michel>  C D
    Michel>  E F


Ma proposition :
cat my_file | xargs -n2 printf "%s %s\n"

S.