comparison p7zip_9.20.1/DOCS/MANUAL/switches/recurse.htm @ 707:8e902fcb8792

<Sgeo> run tar -xjf p7zip.tar.bz2
author HackBot
date Sat, 15 Sep 2012 23:18:55 +0000
parents
children
comparison
equal deleted inserted replaced
706:1cf2de42d323 707:8e902fcb8792
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4 <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
5 <TITLE>-r (Recurse subdirectories) switch</TITLE>
6 <LINK href="style.css" rel="stylesheet" type="text/css">
7 </HEAD>
8
9 <BODY>
10
11 <H1>-r (Recurse subdirectories) switch</H1>
12
13 <P>Specifies the method of treating wildcards and filenames on the command line.</P>
14
15 <H4>Syntax</H4>
16
17 <PRE class="syntax">
18 -r[- | 0]
19 </PRE>
20
21
22 <TABLE>
23 <TR><TH width="80">Switch</TH> <TH>Description</TH></TR>
24 <TR><TD>-r</TD> <TD>Enable recurse subdirectories.</TD></TR>
25 <TR><TD>-r-</TD> <TD>Disable recurse subdirectories. This option is default for all commands.</TD></TR>
26 <TR><TD>-r0</TD> <TD>Enable recurse subdirectories only for wildcard names.</TD></TR>
27 </TABLE>
28
29 <H4>Examples</H4>
30
31 <PRE class="example">
32 7z l archive.zip *.doc -r-
33 </PRE>
34
35 <P>lists all <SPAN class="filename">*.doc</SPAN> files
36 that belong to the archived root directory
37 in the <SPAN class="filename">archive.zip</SPAN> archive.
38 </P>
39
40 <PRE class="example">
41 7z a -tzip archive.zip -r src\*.cpp src\*.h
42 </PRE>
43
44 <P>adds all <SPAN class="filename">*.cpp</SPAN> and <SPAN class="filename">*.h</SPAN>
45 files from directory <SPAN class="filename">src</SPAN> and all it's subdirectories
46 to the <SPAN class="filename">archive.zip</SPAN> archive.</P>
47
48 <PRE class="example">
49 7z a archive.7z folder1\
50 </PRE>
51
52 <P>adds all files from directory <SPAN class="filename">folder1</SPAN> and all it's subdirectories
53 to the <SPAN class="filename">archive.7z</SPAN> archive.</P>
54
55 <PRE class="example">
56 7z a archive.7z -r folder2\
57 </PRE>
58
59 <P>searches all <SPAN class="filename">folder2</SPAN> directories in all subdirectories,
60 and adds them (including all subdirectories) to the <SPAN class="filename">archive.7z</SPAN> archive.</P>
61
62 <H4>Commands that can be used with this switch</H4>
63
64 <P>
65 <A href="../commands/add.htm">a (Add)</A>,
66 <A href="../commands/delete.htm">d (Delete)</A>,
67 <A href="../commands/extract.htm">e (Extract)</A>,
68 <A href="../commands/list.htm">l (List)</A>,
69 <A href="../commands/test.htm">t (Test)</A>,
70 <A href="../commands/update.htm">u (Update)</A>,
71 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
72 </P>
73
74 <H4>See also</H4>
75
76 <P>
77 <B>Switches:</B>
78 <A href="include.htm">-i (Include)</A>,
79 <A href="exclude.htm">-x (Exclude)</A>
80 </P>
81
82 </BODY>
83 </HTML>