pls for the future..... use VBcodes to properly format your posting - you can click on the on the bottom left of the window "Posting rules" to get the details of the
VB codes
this reassigns the value of 'filedate' to a
variable 'date'
this assigns the return value of the
command 'date' to a variable 'fdate'
Code:
fdate=`date +%Y%m%d%H%M%S` (#PROBLEM? here date is not getting $filedate value. It still picks up the current date value. Don't know why?)
The code behaves as implemented. I think you're having something else in mind.