How can I use sed to change the output format of a text file?
My text file contains and diplays this when I call cat:
9/27/2002
9/28/2002
10/1/2002
10/2/2002
10/10/2002
10/11/2002
12/29/2002
1/1/2003
1/2/2003
I want it to display like this using sed (with it removing the '/', adding the space, and adding zeroes to the days and months):
2002 09 27
2002 09 28
2002 10 01
2002 10 02
2002 10 10
2002 10 11
2002 12 29
2003 01 01
2003 01 02
Any help will be much appreciated!