I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back to the lsof command and that is not working for me, Here is the script:
find . -mtime +30 -type f| xargs -I{} -t rm {} 2>> $LOGFILE
rc=$?
d="$(date '+%m%d%Y %H:%M:%S')"