Go through multiple directories on Linux terminal

-1

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

    
asked by anonymous 05.10.2018 / 21:30

1 answer

-1

Use grep and a for loop .

Example:

$ grep -R stretch /etc/*
    
06.10.2018 / 00:05