Skip to content Skip to sidebar Skip to footer

Scripts Traversing Through Directories Looking For Specific Set Of Files And Folders

I'm trying to create a script that will traverse through all folders and subfolders of rootDir looking for specific set of folders and files. If script will find the folder (for ex

Solution 1:

what about using find?

find / -type f -name "*.jpg" -exec tar -czf /tmp/jpg.tar.gz {} \;

with -u you can update existing archives.

Greetings, fuchs

Post a Comment for "Scripts Traversing Through Directories Looking For Specific Set Of Files And Folders"