Hi,
I tried using the following on a HP-UX box in a ksh script.
export FILE=test_data_'$DATESTAMP*'.txt'
FILENAME= `eval ls -t $FILE`
The 'file' name comprises of DateStamp and TimeStamp, so I am using a wild card search to get all the files with the current date.
I then want to see all the files available, and pick the latest one, so I am using 'eval'.
But it dosent seem to work on this box.
When I try to echo the FILENAME I get a blank line.
Am I missing something?
Thanks.