1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
2 .TH MSGGREP "1" "April 2005" "GNU gettext-tools 0.14.4" GNU
4 msggrep \- pattern matching on message catalog
7 [\fIOPTION\fR] [\fIINPUTFILE\fR]
9 .\" Add any additional description here
11 Extracts all messages of a translation catalog that match a given pattern
12 or belong to some given source files.
14 Mandatory arguments to long options are mandatory for short options too.
15 .SS "Input file location:"
20 \fB\-D\fR, \fB\-\-directory\fR=\fIDIRECTORY\fR
21 add DIRECTORY to list for input files search
23 If no input file is given or if it is -, standard input is read.
24 .SS "Output file location:"
26 \fB\-o\fR, \fB\-\-output\-file\fR=\fIFILE\fR
27 write output to specified file
29 The results are written to standard output if no output file is specified
31 .SS "Message selection:"
33 [-N SOURCEFILE]... [-M DOMAINNAME]...
34 [-K MSGID-PATTERN] [-T MSGSTR-PATTERN] [-C COMMENT-PATTERN]
36 A message is selected if it comes from one of the specified source files,
37 or if it comes from one of the specified domains,
38 or if \fB\-K\fR is given and its key (msgid or msgid_plural) matches MSGID-PATTERN,
39 or if \fB\-T\fR is given and its translation (msgstr) matches MSGSTR-PATTERN,
40 or if \fB\-C\fR is given and the translator's comment matches COMMENT-PATTERN.
42 When more than one selection criterion is specified, the set of selected
43 messages is the union of the selected messages of each criterion.
44 .SS "MSGID-PATTERN or MSGSTR-PATTERN or COMMENT-PATTERN syntax:"
46 [-E | \fB\-F]\fR [-e PATTERN | \fB\-f\fR FILE]...
48 PATTERNs are basic regular expressions by default, or extended regular
49 expressions if \fB\-E\fR is given, or fixed strings if \fB\-F\fR is given.
51 \fB\-N\fR, \fB\-\-location\fR=\fISOURCEFILE\fR
52 select messages extracted from SOURCEFILE
54 \fB\-M\fR, \fB\-\-domain\fR=\fIDOMAINNAME\fR
55 select messages belonging to domain DOMAINNAME
57 \fB\-K\fR, \fB\-\-msgid\fR
58 start of patterns for the msgid
60 \fB\-T\fR, \fB\-\-msgstr\fR
61 start of patterns for the msgstr
63 \fB\-C\fR, \fB\-\-comment\fR
64 start of patterns for the translator's comment
66 \fB\-E\fR, \fB\-\-extended\-regexp\fR
67 PATTERN is an extended regular expression
69 \fB\-F\fR, \fB\-\-fixed\-strings\fR
70 PATTERN is a set of newline-separated strings
72 \fB\-e\fR, \fB\-\-regexp\fR=\fIPATTERN\fR
73 use PATTERN as a regular expression
75 \fB\-f\fR, \fB\-\-file\fR=\fIFILE\fR
76 obtain PATTERN from FILE
78 \fB\-i\fR, \fB\-\-ignore\-case\fR
79 ignore case distinctions
80 .SS "Input file syntax:"
82 \fB\-P\fR, \fB\-\-properties\-input\fR
83 input file is in Java .properties syntax
85 \fB\-\-stringtable\-input\fR
86 input file is in NeXTstep/GNUstep .strings syntax
90 do not use C escapes in output (default)
93 use C escapes in output, no extended chars
96 write PO file even if empty
101 \fB\-\-no\-location\fR
102 suppress '#: filename:line' lines
104 \fB\-\-add\-location\fR
105 preserve '#: filename:line' lines (default)
108 strict Uniforum output style
110 \fB\-p\fR, \fB\-\-properties\-output\fR
111 write out a Java .properties file
113 \fB\-\-stringtable\-output\fR
114 write out a NeXTstep/GNUstep .strings file
116 \fB\-w\fR, \fB\-\-width\fR=\fINUMBER\fR
117 set output page width
120 do not break long message lines, longer than
121 the output page width, into several lines
123 \fB\-\-sort\-output\fR
124 generate sorted output
126 \fB\-\-sort\-by\-file\fR
127 sort output by file location
128 .SS "Informative output:"
130 \fB\-h\fR, \fB\-\-help\fR
131 display this help and exit
133 \fB\-V\fR, \fB\-\-version\fR
134 output version information and exit
136 Written by Bruno Haible.
138 Report bugs to <bug-gnu-gettext@gnu.org>.
140 Copyright \(co 2001-2005 Free Software Foundation, Inc.
142 This is free software; see the source for copying conditions. There is NO
143 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
145 The full documentation for
147 is maintained as a Texinfo manual. If the
151 programs are properly installed at your site, the command
155 should give you access to the complete manual.