Hello all,
This should be straight forward but I haven't been working alot with awk recently and can't my head around it.
Basically, I have a comma separate file, with a fixed numer of characters;
EG:
date_entry,id_entry,time_entry,3,6,0,6,4,7,9,0,79,2,2,4,6
This is a sample file.
I need to swap the character(s) at position 13 with those at position 11, as both characters are out of position. The key thing here is that both characters need to be swapped within the file as the file will then be processed by another system.
I don't necessarily want to create another file.
many thanks in advance
Regards
Alf
This should be straight forward but I haven't been working alot with awk recently and can't my head around it.
Basically, I have a comma separate file, with a fixed numer of characters;
EG:
date_entry,id_entry,time_entry,3,6,0,6,4,7,9,0,79,2,2,4,6
This is a sample file.
I need to swap the character(s) at position 13 with those at position 11, as both characters are out of position. The key thing here is that both characters need to be swapped within the file as the file will then be processed by another system.
I don't necessarily want to create another file.
many thanks in advance
Regards
Alf