Re: string to date KSH



Could you please explain the following code in brief words.
Ed Morton wrote:
Rafael The Engel wrote:
Hello everyone,
I need your help

I have a string the contains a date "20061024"

I wand to convert it to 24/10/2006

$ date="20061024"
$ tmp="${date%??}"
$ echo "${date#??????}/${tmp#????}/${tmp%??}"
24/10/2006

Regards,

Ed.

.