Tiffado
Tiffado

Reputation: 452

How to get the contents of multiple folders having the same structure

I have an "app" folder in which on I have severals folders. In each one of those folders, I have a "web" and a "conf" folder.

I would like to know what's inside every one of those folder.

Any clue ?

Upvotes: 0

Views: 34

Answers (1)

devnull
devnull

Reputation: 123608

Use find:

find app -type f \( -wholename "*/web/*" -o -wholename "*/config/*" \)

This would list all the files inside the web and config directories.

Upvotes: 1

Related Questions