I tried the following code unsuccessfully
find Applications | xargs -0 grep Applications
I also tried the following unsuccessfully
find Applications
Was it something instead like:
mdfind Applications | grep Applications
mdfind
is a command line interface to Spotlight. Somehow, I doubt this is what you were looking for.
The following command will find the names of Mac apps you have installed somewhere under /Applications
.
find /Applications -type d -name "*.app"
Your question as phrased is pretty hard to help with, since you are not stating what your overall intent is...