I'd like to tabularize a file with the column
command:
$ column -c 60 file.txt
The output is nice on the screen, but unusable for my purposes because the items are seperated by tabs. for further processing, I need them as whitespace.
Of course, I cannot just replace one tab with one space because this would destroy the left-alignment of the 2nd, 3rd etc column.
expand
from GNUcoreutils
converts tabs to spaces. There are many other ways, f.i. using Vim.-s
option in the manpage, did you?column -t -s ' '
works insofar as it uses spaces instead of tabs as column separators. As the manpage describes: "-t [...] Useful for pretty-printing displays.".-s
works well with-t
but I am not asking for input seperators, but for output seperators. Apologies if my question was not clear.