Hi Everyone,
I have a text file (test.txt) with random amount of lines where each line has 10 fields as shown below
i.e.: string1|string2|string3||string5|string6||||string10| (some fields are empty)
I would like to be able to convert each line into 15 fields and change some of the fields position along the line and output the result on a different file (test1.txt)
i.e.: string1|string2|||string5|||||string10|string3|string6|||| line = 15 fields, string3 now on field 11 and string6 now on field 12
Any input will be much appreciated
M
I have a text file (test.txt) with random amount of lines where each line has 10 fields as shown below
i.e.: string1|string2|string3||string5|string6||||string10| (some fields are empty)
I would like to be able to convert each line into 15 fields and change some of the fields position along the line and output the result on a different file (test1.txt)
i.e.: string1|string2|||string5|||||string10|string3|string6|||| line = 15 fields, string3 now on field 11 and string6 now on field 12
Any input will be much appreciated
M
Last edited: