awk -F"," '{ print $1, $2}' file | while read dir days do find $dir -maxdepth 1 -type f -mtime +$days -name '*.*' -print | xargs rm -f done