Quote:
|
Originally Posted by anbu23
Code:
IFS=","
while read dir days
do
if [[ $days -ge 7 ]]
then
echo $dir # rm -r $dir
fi
done<file
|
I believe this would delete all the files and inclusive of subdirectories if there are any
and OP had requested only for deletion of files ( If am not wrong

)
And moreover what about the case when days is less than 7 ?
