1

Needed shell script for the following

view story
linux-howto

http://www.unix.com – hi all, i want the script for the following my input is date mm-dd-yyyy i.e 1-4-2012(it doesn't have zeros in the input ,in output it should append zeros and should print the output as defined below) my output should be 2012-04-01(yyyy-dd-mm) if my input is 11-14-2012 then my should be 2012-14-11 thanks in advance, hemanth saikumar (HowTos)