Hi,
I am currently using the following command: files=(ls enuCPU??.????.exp ntuCPU??.????.exp)
I need to now change the commmand to store the file names of files that have been modified before datetime equal to say '02/16/2008 20:30:00'
What could I use?
Using the touch command you can create a file with a specific date/time. You can then use the find command with the -newer option to find the files you want. i.e. find ./ ! -newer touchfile -print
To be complete:
find . ! -newer touchfile -name enuCPU\?\?.\?\?\?\?.exp -o -name ntuCPU\?\?.\?\?\?\?.exp -print
Wildcards need to be escaped to avoid interpretation by the shell.