Comment parcourir une ligne de droite à gauche avec awk ?

Voila une question que ce pose tout ceux qui ce trouve face à des nombres de champs variable sur la même ligne de fichier. Voici la solution que j’ai trouvé

<span style="color: #c20cb9; font-weight: bold;">awk</span> -v <span style="color: #007800;">OFS=</span><span style="color: #ff0000;">''</span> <span style="color: #ff0000;">'{print $(NF)}'</span> <span style="color: #c20cb9; font-weight: bold;">file</span>.txt

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 Karlesnine Suffusion theme by Sayontan Sinha