Core iTOps Tube

Wednesday, 9 May 2012

Moving String in a File on the top

Hello,



I have a file containing data and the headers of the data and the headers of the data randomly anywhere in the file but always with the specific string col1;col2;col3




Code:


112233;1133244;112344

112233;1133244;112344

112233;1133244;112344

112233;1133244;112344

Col1;Col2;Col3

112233;1133244;112344

112233;1133244;112344

112233;1133244;112344

112233;1133244;112344


How can I move the headers i.e. Col1;col2;Col3 to the first line of the file.




No comments:

Post a Comment