0

for example I have:

   test-folder
     --a-folder
       --a.file
     --b-folder
       --b.file
       --c.file

I need to put "test-folder" as argument and I should get back:

(
root/test-folder/a-folder/a.file,
root/test-folder/b-folder/b.file,
root/test-folder/b-folder/c.file,
)
  • Use `find` to recursively search the filesystem: `find test-folder -type f`. By default it prints both files and sub-directories; `-type f` restricts it to files only. – John Kugelman Feb 23 '22 at 14:20

0 Answers0