I have a sample text which is a database output:
objs/blabla | Restore | manual | Restore Failed: The volume does not want to exist | BackupFailed | 2020-10- 06T21:39:01 | 2020-10-06T21:39:01 | 0 | 0 | 0 > | 0 | 0
I need to change only the 'T' from the time/date string to a ',' (comma).
So far, I have tried:
sed -e 's/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}/g' -e 's/T/,/g'
But it fails to isolate only the date time string, and produces the following output:
objs/blabla | Restore | manual | Restore Failed:,he volume does not want to exist | BackupFailed | 2020-10- 06,21:39:01 | 2020-10-06,21:39:01 | 0 | 0 | 0 > | 0
Thus, it's also changing the 'The' to ',he' which is unwanted.