1- .TH UGREP-INDEXER "1" "August 12 , 2023" "ugrep-indexer 0.9.1 " "User Commands"
1+ .TH UGREP-INDEXER "1" "December 05 , 2023" "ugrep-indexer 0.9.2 " "User Commands"
22.SH NAME
33\fB ugrep-indexer \fR -- file indexer for accelerated ugrep search
44.SH SYNOPSIS
@@ -11,7 +11,8 @@ The following options are available:
1111Usage:
1212ugrep\- indexer [\fB \- 0 \fR |...|\fB \- 9 \fR ] [\fB \- . \fR ] [\fB \- c \fR |\fB \- d \fR |\fB \- f \fR ] [\fB \- I \fR ] [\fB \- q \fR ] [\fB \- S \fR ] [\fB \- s \fR ] [\fB \- X \fR ] [\fB \- z \fR ] [\fI PATH \fR ]
1313.TP
14- PATH Optional pathname to the root of the directory tree to index.
14+ PATH Optional pathname to the root of the directory tree to index. The
15+ default is to recursively index the working directory tree.
1516.TP
1617\fB \- 0 \fR , \fB \- 1 \fR , \fB \- 2 \fR , \fB \- 3 \fR , ..., \fB \- 9 \fR , \fB \-\- accuracy \fR =\fI DIGIT \fR
1718Specifies indexing accuracy. A low accuracy reduces the indexing
@@ -54,53 +55,105 @@ their error messages and warnings are suppressed.
5455Display version and exit.
5556.TP
5657\fB \- v \fR , \fB \-\- verbose \fR
57- Produce verbose output.
58+ Produce verbose output. Indexed files are indicated with an A for
59+ archive, C for compressed, B for binary or I for ignored binary.
5860.TP
5961\fB \- X \fR , \fB \-\- ignore \- files \fR [=\fI FILE \fR ]
6062Do not index files and directories matching the globs in a FILE
6163encountered during indexing. The default FILE is `.gitignore'.
64+ This option may be repeated to specify additional files.
6265.TP
6366\fB \- z \fR , \fB \-\- decompress \fR
64- Index the contents of compressed files and archives.
65- This option is not yet available in this version.
66- ugrep\- indexer 0.9.1 beta
67- License BSD\- 3\- Clause: <https://opensource.org/licenses/BSD\- 3\- Clause>
68- Written by Robert van Engelen and others: <https://github.com/Genivia/ugrep>
67+ Index the contents of compressed files and archives. When used
68+ with option \fB \-\- zmax \fR =\fI NUM \fR , indexes the contents of compressed files
69+ and archives stored within archives up to NUM levels deep.
70+ Supported compression formats: gzip (.gz), compress (.Z), zip,
71+ bzip2 (requires suffix .bz, .bz2, .bzip2, .tbz, .tbz2, .tb2, .tz2),
72+ lzma and xz (requires suffix .lzma, .tlz, .xz, .txz),
73+ lz4 (requires suffix .lz4),
74+ zstd (requires suffix .zst, .zstd, .tzst),
75+ brotli (requires suffix .br).
76+ .TP
77+ \fB \-\- zmax \fR =\fI NUM \fR
78+ When used with option \fB \- z \fR (\fB \-\- decompress \fR ), indexes the contents of
79+ compressed files and archives stored within archives by up to NUM
80+ expansion levels deep. The default \fB \-\- zmax \fR =1 only permits indexing
81+ uncompressed files stored in cpio, pax, tar and zip archives;
82+ compressed files and archives are detected as binary files and are
83+ effectively ignored. Specify \fB \-\- zmax \fR =2 to index compressed files
84+ and archives stored in cpio, pax, tar and zip archives. NUM may
85+ range from 1 to 99 for up to 99 decompression and de\- archiving
86+ steps. Increasing NUM values gradually degrades performance.
87+ .TP
88+ Indexes are incrementally updated unless option \fB \- f \fR or \fB \-\- force \fR is specified.
89+ .TP
90+
91+ .TP
92+ When option \fB \- I \fR or \fB \-\- ignore \- binary \fR is specified, binary files are ignored
93+ .TP
94+ and not indexed. Searching with ugrep \fB \-\- index \fR still searches binary files
95+ .TP
96+ unless ugrep option \fB \- I \fR or \fB \-\- ignore \- binary \fR is specified also.
97+ .TP
98+
99+ .TP
100+ Archives and compressed files are incrementally indexed only when option \fB \- z \fR
101+ .TP
102+ or \fB \-\- decompress \fR is specified. Otherwise, archives and compressed files are
103+ .TP
104+ indexed as binary files, or are ignored with option \fB \- I \fR or \fB \-\- ignore \- binary \fR .
105+ .TP
106+
107+ .TP
108+ To create an indexing log file, specify option \fB \- v \fR or \fB \-\- verbose \fR and redirect
109+ .TP
110+ standard output to a log file. All messages are sent to standard output.
111+ .TP
112+
113+ .TP
114+
69115.SH "EXIT STATUS"
70116The \fB ugrep-indexer \fR utility exits with one of the following values:
71117.IP 0
72118Indexes are up to date.
73119.IP 1
74120Indexing check with option \fB -c \fR detected missing and outdated index files.
75121.SH EXAMPLES
76- Recursively and incrementally index all non-binary files showing progress
122+ Recursively and incrementally index all non-binary files showing progress:
77123.IP
78124$ ugrep-indexer -I -v
79125.PP
80- Index all non-binary files, show progress, follow symbolic links to files (but
81- not to directories), and do not index files and directories matching the globs
82- in .gitignore:
126+ Recursively and incrementally index all non-binary files, including non-binary
127+ files stored in archives and in compressed files, showing progress:
83128.IP
84- $ ugrep-indexer -I -v -S -X
129+ $ ugrep-indexer -z -I -v
85130.PP
86- Recursively force re-indexing of all non-binary files:
131+ Incrementally index all non-binary files, including archives and compressed
132+ files, show progress, follow symbolic links to files (but not to directories),
133+ but do not index files and directories matching the globs in .gitignore:
87134.IP
88- $ ugrep-indexer -f -I
135+ $ ugrep-indexer -z -I -v -S -X
89136.PP
90- Recursively delete all hidden ._UG#_Store index files to restore the directory
91- tree to non-indexed:
137+ Force re-indexing of all non-binary files, including archives and compressed
138+ files, follow symbolic links to files (but not to directories), but do not
139+ index files and directories matching the globs in .gitignore:
92140.IP
93- $ ugrep-indexer -d
141+ $ ugrep-indexer -f -z -I -v -S -X
94142.PP
95- Decrease index file storage to a minimum by decreasing indexing accuracy from 5
96- (default) to 0:
143+ Same, but decrease index file storage to a minimum by decreasing indexing
144+ accuracy from 5 (default) to 0:
97145.IP
98- $ ugrep-indexer -If0
146+ $ ugrep-indexer -f -0 -z -I -v -X
99147.PP
100148Increase search performance by increasing the indexing accuracy from 5
101149(default) to 7 at a cost of larger index files:
102150.IP
103- $ ugrep-indexer -If7
151+ $ ugrep-indexer -f7zIvX
152+ .PP
153+ Recursively delete all hidden ._UG#_Store index files to restore the directory
154+ tree to non-indexed:
155+ .IP
156+ $ ugrep-indexer -d
104157.SH BUGS
105158Report bugs at:
106159.IP
0 commit comments