Recursive follow files in bash

Posted by user328955 on Stack Overflow See other posts from Stack Overflow or by user328955
Published on 2010-04-29T13:58:51Z Indexed on 2010/04/29 14:07 UTC
Read the original article Hit count: 341

Filed under:
|
|
|

I have files which contain file names pointing to other files. These files contain further file names pointing further files and so on. I need a bash script which follows each files recursively and logs into file every touched file during the run.

file1:
   file2
   file3

file2:
   file4

file3:
   file5

file4 and file5 are empty. Result:

file1
file2
file4
file3
file5

© Stack Overflow or respective owner

Related posts about recursive

Related posts about follow