Использование GNUdatamash
:
$ datamash -t',' reverse --no-strict
изman datamash
:
-t, --field-separator=X
use X instead of TAB as field delimiter
reverse
reverse field order in each line
--no-strict
allow lines with varying number of fields