I have a very big CSV file (aprox. 10.000 rows and 400 columns) and I need to modify certain columns (like 15, 156, 220) to change format from 20140321132233 to 2014-03-21 13:22:33. All fields that I need to modify are datetime.
I saw some examples using awk but for math modifications. Can I use something like this for doing the above change?
file.csv example:
19238328932|123233443|123|0|||||123123|20140321132233|1|0|0|....|20130211122143|...
12332312211|222321233|111|0|||||234432|20150222122354|1|0|0|....|20120112123133|...
mktime? It was also a call to do some research instead of a just "give me my code" question.mktime(I had a feeling it might be 4 but could be wrong). Agreed that it would be nice to see some more input from the OP; my main point was that this problem would be quite a hassle to solve using date functions.