This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in the search. Right now its excluding everything from prune directories such as ABC_CHQ, LYS_ADV etc.
Please let me know how can I include only one sub directory which is under ABC_CHQ lets say.
Please let me know how can I include only one sub directory which is under ABC_CHQ lets say.
Code:
FILES=`find /home/u10/payments -name "ABC_CHQ" -prune -o \
-name "ABCD_CTRE" -prune -o -name "LYS_ADV" -prune -o -type f -mtime +$DAYS \
-exec ls {} \;`
Moderator's Comments: | ||
|