Hi ,
I am trying to use the find command in a script within a loop like
find ${FILE_DIR} -name $FILE_NAME -mtime +7 -exec gzip {} \;
I am passing the FILE_DIR and FILE_NAME variables.
I need to exclude the files which are already zipped. Is there a way to say {and NOT FILES with an extension of .gz} within the find command.
I dont think -prune can be used here, coz it looks for directories and not individual files.
Many thanx,
I am trying to use the find command in a script within a loop like
find ${FILE_DIR} -name $FILE_NAME -mtime +7 -exec gzip {} \;
I am passing the FILE_DIR and FILE_NAME variables.
I need to exclude the files which are already zipped. Is there a way to say {and NOT FILES with an extension of .gz} within the find command.
I dont think -prune can be used here, coz it looks for directories and not individual files.
Many thanx,