I'd like to pipe the output of an ldapsearch to sanitize the dates returned - I presume sed and/or awk can help with this but would appreciate a bit of help.
The fixed length date format in the LDIF output file is like this:
Any pointers to get it in this format would be great:
whenCreated: DD-MM-YY hh:mm
eg (using above example):
whenCreated: 09-12-2011 10:31