I currently run some python code to output a set of values alongside a datetime string, into approx 400 text files. The outputs have different values but the same format.
I have changed the format of the datetime string at some point to have a colon between days and hours instead of a whitespace. So now I need to edit the previous whitespace version to match the current version. Sample :
2016/02/11 12:54:28 0071754407 7599 4727 2690
2016/02/11 14:07:41 0071754407 7599 4726 2690
2016/02/11:15:26:58 0071754407 7599 4725 2690
2016/02/11:17:12:59 0071754407 7599 4722 2690
2016/02/11:19:01:21 0071754407 7599 4721 2690
I am looking at using sed similar to this My current attempt looks something like so
find . -name '*.txt' | sed -ei 's'\d\/\d\s\d\d\:''\d\/\d\:\d\d\:g'
As you can see, I don't know how sed handles regex. I am also unsure about the suffixes to sed, I read that i allows to write to the same file and e is for expressions.
Any guidance would be appreciated.