User Tools

Site Tools


awk:reverse_order_of_fields_in_each_line

AWK - Reverse order of fields in each line

awk '{ for (i=NF; i>0; i--) printf("%s ", $i); printf ("\n") }' file.txt
awk/reverse_order_of_fields_in_each_line.txt · Last modified: 2020/09/23 15:59 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki