1.

Write A Command To Print The Fields In A Text File In Reverse Order?

Answer»

AWK 'BEGIN {ORS=""} { for(i=NF;i>0;i--) print $i," "; print "n"}' FILENAME

awk 'BEGIN {ORS=""} { for(i=NF;i>0;i--) print $i," "; print "n"}' filename



Discussion

No Comment Found