Option 'S' --> Recurse Sub-directories. Search for input files
matching
input file mask in all sub-directies.
Note that in using this option when specifying the filename(s),
if regular
expression operators, e.g., '*', are used, then the filename
specification
should be enclosed in quotes, either single, ', or double, ".
This prevents
the shell from expanding the expression.
For example if the desired directory has the following files and
directories:
drwxrwxr-x 10 terry terry 4096 Dec 7
16:36 .
drwxr-xr-t 16 terry terry 4096 Dec 7
17:49 ..
drwxrwxr-x 5 terry terry 4096 Jun
9 13:49 aux_files
-rw-rw-r-- 1 terry terry 34093 Dec 7
13:19 buffer.c
-rw-rw-r-- 1 terry terry 14719 Nov 29
2004 date.c
-rw-rw-r-- 1 terry terry 15156 Nov 26 21:02
displayu.c
drwxrwxr-x 2 terry terry 4096 Jun
9 13:49 Docs
-rw-rw-r-- 1 terry terry 12108 Nov 26 17:28
extnvars.c
-rw-rw-r-- 1 terry terry 49261 Dec 4
15:17 findfile.c
drwxrwxr-x 2 terry terry 4096 Dec
7 17:05 Function.Listing
drwxrwxr-x 2 terry terry 4096 Nov 24
17:40 Hash
Executing the following command to scan all files with an
extension of 'c' in the current and all sub-directories:
 -S gettext *.c
would not yield the desired results. The shell would expand
this to:
 -S gettext buffer.c date.c displayu.c extnvars.c
findfile.c
Thus when searching the sub-directories, files with the names
specified
are not found. To prevent the shell from expanding the wildcard,
'*',
enclose the file specification in single or double quotes. Thus:
 -S gettext '*.c'
This will make  expand the wildcard in all
subdirectories.
Incompatible Options Are:
W
|
Write Compiled Search Patterns
|
Z
|
File Preview
|
© Terry D. Boldt 1997-2005
All Rights Reserved
Last Updated: Dec. 12, 2005