Hi ,
I have a simple text file with contents as below:
12345678900 971,76 4234560890
22345678900 5971,72 5234560990
32345678900 71,12 6234560190
the new csv-file should be like:
Column1;Column2;Column3;Column4;Column5
123456;78900;971,76;423456;0890
223456;78900;5971,72;523456;0990
323456;78900;71,12;623456;0190
The requirements are:
- Column1 contains first six characters of first number in text file
- Column2 contains last five characters of first number in text file
- Column3 contains complete semicolon separated number of text file
- Column4 contains first six characters of last number in text file
- Column4 contains last four characters of last number in text file
Unfortunately I'm some kind of newbie in awk. I've tried writing some scripts by myself, but not with to much success.
Any help&hints would be appreciated.
Thanks in advance.