You can use find command or recursdir command to recurse through local or remote directories to command/find files or create tar files.
recursdir command pass a C script to recursively perform operations on files. recursdir is an excellent tool for automatic stuff. It provides C style programming functions and statements such as:
- strncmp()
- exec()
- system()
- strstr()
- strcat()
- printf()
- popen()
- if ( expr ) { take-action }
- if ( expr ) { take-action } else { do-something-else; }
- /* comments */
- Detecting file types and macros
- All of the logical, arithmetic and bitwise C operators are supported. These are ( ) >= < = > < != == && || ! - + * / % & ^ and have the same meanings and precedences as in C. etc.
Continue reading “How to recursively go through all local or remote directories”