Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: bakedjake
I've got a text file which contains a date/time stamp on each line in this format:-
I need to change every line (about 6,000 lines) so that the datetime is in the format:-
Is there a little Linux util I can use to help me automate that?
I don't mind writing a script if I have to, but if I can avoid doing that even better.
perl -i.bak -pe "s/\d\d(\d\d)-(\d\d)-(\d\d) (\d\d):(\d\d):\d\d/$3.$2.$1 ($4:$5)/g" dates.txt