I\'m writing a small shell script that needs to reverse the lines of a text file. Is there a standard filter command to do this sort of thing?
My specific applicatio
awk '{a[i++]=$0}END{for(;i-->0;)print a[i]}'
More faster than sed and compatible for embed devices like openwrt.
sed