Basically I would like to do a 'ls -l' recursively showing only those directories named web. How would I accomplish that?
Asked
Active
Viewed 23 times
2 Answers
1
ls -lR | grep -w web
-R
List subdirectories recursively
-w
Select only those lines containing matches that form whole words.
![](../../users/profiles/349062.webp)
sysfiend
- 1,327
- 1
- 11
- 24
0
How about something like:
$ find /path/to/files -name "web* -type d | xargs ls -la
![](../../users/profiles/20815.webp)
EEAA
- 108,414
- 18
- 172
- 242
-
With some tweaking this worked well. – Frank Barcenas Jul 01 '16 at 04:09