I have a fixed-width txt input.txt that looks like
12345 1 23
23 12 2 11
And I have a separate file fixed-width.txt explaining how each column is separated.
1 2
2 3
3 2
4 3
The first column has 2 letters, the 2nd one 3 letters and so on. So I will need to convert input.txt into
12\t345\t 1\t 23\t\n
23\t 12\t 2\t 11\t\n
I tried to import fixed-width directly to MatLab or Python Pandas but failed. So I am here to ask how to convert this to tab-delimited txt.