hello there,
basically im screwed with a variable that should take the last modification date of a file.
my code is
fileCreationTime=$(( `ls -l $fileName | tr -s " " | cut -d " " -f6` ))
my problem arise coz when the code is executed and stored in a file the return value is 1993 and not the real date. When i execute the ls comand with all the addons alone in the console it works perfectly....
anyone knows why the code doesnt work or any other way of getting the last mod date of a file and putting it into a variable??
i would really appreciate ur help
thx:wall: