Browse multiple Linux terminal directories

Asked

Viewed 110 times

-1

I have an algorithm that starts with a file. From that file, it generates several others. I need to get all the names of these generated files, to from them, run my algorithm again. Basically I wanted to know how to do in Shell Script to go through all the files in a directory and its subdirectories. I thought of something recursive, but as I have no knowledge in Shell, I was a little lost.

1 answer

-1

Use the grep and a for loop.

Example:

$ grep -R stretch /etc/*

Browser other questions tagged

You are not signed in. Login or sign up in order to post.