I have large tree, with many
rules/ There are other type of files inside
rules/ subfolders have no other subfolders.
For example, I have this tree. Everything below 'source'
source/ A/ rules/*.pdf, *.txt, *.c,etc.. etc/ B/ keep_this.pdf rules/*.pdf whatever/ C/ D/ rules/*.pdf something/
and so on. There are
rules/ and no other place.
I think I need to use
cd source find / -type d -name "rules" -print0 | xargs -0 <<<rm *.pdf?? now what?>>>
But I am not sure what to do after getting list of all subfolders named
Any help is appreciated.
On Linux mint.