0

Basically I would like to do a 'ls -l' recursively showing only those directories named web. How would I accomplish that?

Frank Barcenas
  • 605
  • 6
  • 18

2 Answers2

1
ls -lR | grep -w web

-R List subdirectories recursively
-w Select only those lines containing matches that form whole words.

sysfiend
  • 1,387
  • 1
  • 12
  • 24
0

How about something like:

$ find /path/to/files -name "web* -type d | xargs ls -la
EEAA
  • 109,363
  • 18
  • 175
  • 245