![](https://seccdn.libravatar.org/avatar/ef1422786dc780e25acccea52f06bff8.jpg?s=120&d=mm&r=g)
Bernhard Voelker írta:
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
Thanks Berny, This looks very interesting and I will experiment with this approach. It is always good to know console command alternatives of what you can do with GUI programs. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org