cat specific txt file in many directory linux

I have many directories like for example: and and many more like this

and under there are 2 directories:
subdomains/ and webs/

under webs/ there is a file I need to open called:

So how can I open webs.txt in all directories.

>Solution :

You can simply use a wildcard at the beginning of your command.

This is what worked for me:

cat */webs/webs.txt

Leave a Reply