I have data that looks something like this:
term1/term2/2005-12-01 13:20:30/term4
I need to make it look like this:
term1/term2/20051201132030/term4
I am using a csh script. I have tried to do it by first converting the date/time to the format in which I want it, and then replacing it using a tr command to replace the old date/time to the new one, but tr doesn't like strings of different lengths. Is there some other command I can use, or just an easier way of doing this altogether?
Thanks in advance...