I have a folder structure like this:
/domains/some-domain-1/applications/j2ee-apps
/domains/some-domain-2/applications/j2ee-apps
/domains/some-domain-3/applications/j2ee-apps
What is the best way to handle folders like this where the parent and child folders are the same? For example, if I wanted to cd
to a cousin dir j2ee-apps
of another domain folder from is there an easy way? What if I wanted to run a ls
from the top level and get everything in the bottom folders (eg: j2ee-apps
)?
Does anyone have any clever advice on how best to work with this?
find
, eg.find $HOME/bin/*/c* -name '*a*'
...find
also allows regex patterns: see-regex
inman find
– Peter.O Oct 08 '11 at 12:31