I have log files in one directory and its subdirectory. I'd like to write a simple script to remove them.
for example, I have a.log,b.log,c.log in /home/job/
then I have
I know I can do
rm -f /home/job/*.log in job directory.
rm -f /home/job/sub1/*.log
how i remove files in dubdirectoy without listing all the sub?