I need to reduce the following into a single find
statements.
$ find . -print | grep dir
$ find . -print | grep ch
The only tip was given to me was to read man
page to manage to do this. I read through it and had the following conclusion, can someone tell me if I am making the right thinking or if they can direct me to a helpful site where I can understand reducing pipe lines more.
Attempts to do this in a single line:
$ find . -print | grep dir && grep ch
$ find . -print | grep dir , grep ch
or making use of printf.
Does the above make sense or will it give me: not found?