Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

cat specific txt file in many directory linux

I have many directories like for example:
example.com/ and google.com/ and many more like this

and under example.com/ there are 2 directories:
subdomains/ and webs/

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading