0

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

Frank Barcenas
  • 595
  • 4
  • 17

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,327
  • 1
  • 11
  • 24
0

How about something like:

$ find /path/to/files -name "web* -type d | xargs ls -la
EEAA
  • 108,414
  • 18
  • 172
  • 242