"Fossies" - the Fresh Open Source Software archive

Member "p7zip_9.20.1/DOCS/MANUAL/switches/recurse.htm" of archive p7zip_9.20.1_src_all.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

-r (Recurse subdirectories) switch

Specifies the method of treating wildcards and filenames on the command line.

Syntax

-r[- | 0]
Switch Description
-r Enable recurse subdirectories.
-r- Disable recurse subdirectories. This option is default for all commands.
-r0 Enable recurse subdirectories only for wildcard names.

Examples

7z l archive.zip *.doc -r-

lists all *.doc files that belong to the archived root directory in the archive.zip archive.

7z a -tzip archive.zip -r src\*.cpp src\*.h

adds all *.cpp and *.h files from directory src and all it's subdirectories to the archive.zip archive.

7z a archive.7z folder1\

adds all files from directory folder1 and all it's subdirectories to the archive.7z archive.

7z a archive.7z -r folder2\

searches all folder2 directories in all subdirectories, and adds them (including all subdirectories) to the archive.7z archive.

Commands that can be used with this switch

a (Add), d (Delete), e (Extract), l (List), t (Test), u (Update), x (Extract with full paths)

See also

Switches: -i (Include), -x (Exclude)