![](https://seccdn.libravatar.org/avatar/0ab7e02630bf8ea7396ee92940c8b594.jpg?s=120&d=mm&r=g)
On 09/14/2015 03:44 PM, Istvan Gabor wrote:
I would lie to convert a simple ascii or utf8 encoded textfile to a table. The text has no delimiters between columns, but each column in the text file has its specific character lenght. For example in each row of the text characters 1-10 should go into column 1, characters 12-19 into column 2 etc. Is this possible, how?
Sure: use cut(1) from coreutils to extract the columns specified by ranges and use an output separator between the character ranges; then use column(1) from util-linux to align the output in a table: $ cat <
12345678901234567890 hello world ! 1234567890|23456789 hello |world
Have fun, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org