date function

hi,

     I have to ftp previous days file from a directory to another location. The name of the files are like "xxx20060225"       \(yyyymmdd format\)
                                    "xxx20060226"

ls -lrt xxx*| tail -2| head -1 will give me the file, but if i could get anything related to the "date" function to get that previous days filename, it would have been great.

thanx,

abey

many times you would have come across forum members specifying datecalc.
Search for that script.

hi,

thanx....

abey