I\'d like to output a table format text. What I tried to do was echo the elements of an array with \'\\t\', but it was misaligned.
My code
for((i=0;i
It's easier than you wonder.
If you are working with a separated by semicolon file and header too:
$ (head -n1 file.csv && sort file.csv | grep -v ) | column -s";" -t
If you are working with array (using tab as separator):
for((i=0;i> tmp_file.csv done; cat file.csv | column -t