Help needed to print the not updated files in the Directory

view full story

http://www.unix.com – Hi All, I have written one program to print the files which are not updated in the specified directory in .Dat file. If I am executing the same command in the command prompt its working fine but if I am executing in shell script it's not working fine. Please correct if any thing wrong in the below script My requirement is, I want the files which are not updated in last 7 days Code: #set -vx #!/bin/ksh day_chk=`expr $(nzsql -host ${NZ_HOST} -db ${NZ_DATABASE_LOG}  -A -t -c "SELECT TO_CHAR(CURRENT_DATE,'DD')") - 7` mon_chk=`expr $(nzsql -host ${NZ_HOST} -db ${NZ (HowTos)