1
I am attempting to write a script to delete files from a directory. find /home/docs/* -name "*.log" -type f -print -exec rm -f {} \; The above works however I need to use grep to target directories using grep. When I put grep I get failures. find /home/docs/* -name "*.log" -type f | grep -i "Te...