upilliappan
MIS
Hi
I have an requirement to find all logfiles under a directory and move them to another partition. But I need to exclude all files begining with alert_.
I am using the following command to find and move all log files.
find $dirs -name "*.log" -o -name "*.trc" -o -name "*.trw" -o -name "core.*" -type f -size $limit -exec mv {} $2/ \;
could you please tell me how to apply the filter on it (Exclude files starting with name alert)
Regards
Upilli
I have an requirement to find all logfiles under a directory and move them to another partition. But I need to exclude all files begining with alert_.
I am using the following command to find and move all log files.
find $dirs -name "*.log" -o -name "*.trc" -o -name "*.trw" -o -name "core.*" -type f -size $limit -exec mv {} $2/ \;
could you please tell me how to apply the filter on it (Exclude files starting with name alert)
Regards
Upilli