summaryrefslogtreecommitdiffstats
path: root/man/msggrep.1
blob: 85056778f8612f1f2e2eb78365d55a2366ead675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.24.
.TH MSGGREP "1" "April 2002" "GNU gettext 0.11.2" GNU
.SH NAME
msggrep \- pattern matching on message catalog
.SH SYNOPSIS
.B msggrep
[\fIOPTION\fR] [\fIINPUTFILE\fR]
.SH DESCRIPTION
.\" Add any additional description here
.PP
Extracts all messages of a translation catalog that match a given pattern
or belong to some given source files.
.PP
Mandatory arguments to long options are mandatory for short options too.
.SS "Input file location:"
.TP
INPUTFILE
input PO file
.TP
\fB\-D\fR, \fB\-\-directory\fR=\fIDIRECTORY\fR
add DIRECTORY to list for input files search
.PP
If no input file is given or if it is -, standard input is read.
.SS "Output file location:"
.TP
\fB\-o\fR, \fB\-\-output\-file\fR=\fIFILE\fR
write output to specified file
.PP
The results are written to standard output if no output file is specified
or if it is -.
.SS "Message selection:"
.IP
[-N SOURCEFILE]... [-M DOMAINNAME]...
[-K MSGID-PATTERN] [-T MSGSTR-PATTERN] [-C COMMENT-PATTERN]
.PP
A message is selected if it comes from one of the specified source files,
or if it comes from one of the specified domains,
or if \fB\-K\fR is given and its key (msgid or msgid_plural) matches MSGID-PATTERN,
or if \fB\-T\fR is given and its translation (msgstr) matches MSGSTR-PATTERN,
or if \fB\-C\fR is given and the translator's comment matches COMMENT-PATTERN.
.PP
When more than one selection criterion is specified, the set of selected
messages is the union of the selected messages of each criterion.
.SS "MSGID-PATTERN or MSGSTR-PATTERN syntax:"
.IP
[-E | \fB\-F]\fR [-e PATTERN | \fB\-f\fR FILE]...
.PP
PATTERNs are basic regular expressions by default, or extended regular
expressions if \fB\-E\fR is given, or fixed strings if \fB\-F\fR is given.
.TP
\fB\-N\fR, \fB\-\-location\fR=\fISOURCEFILE\fR
select messages extracted from SOURCEFILE
.TP
\fB\-M\fR, \fB\-\-domain\fR=\fIDOMAINNAME\fR
select messages belonging to domain DOMAINNAME
.TP
\fB\-K\fR, \fB\-\-msgid\fR
start of patterns for the msgid
.TP
\fB\-T\fR, \fB\-\-msgstr\fR
start of patterns for the msgstr
.TP
\fB\-E\fR, \fB\-\-extended\-regexp\fR
PATTERN is an extended regular expression
.TP
\fB\-F\fR, \fB\-\-fixed\-strings\fR
PATTERN is a set of newline-separated strings
.TP
\fB\-e\fR, \fB\-\-regexp\fR=\fIPATTERN\fR
use PATTERN as a regular expression
.TP
\fB\-f\fR, \fB\-\-file\fR=\fIFILE\fR
obtain PATTERN from FILE
.TP
\fB\-i\fR, \fB\-\-ignore\-case\fR
ignore case distinctions
.SS "Output details:"
.TP
\fB\-\-no\-escape\fR
do not use C escapes in output (default)
.TP
\fB\-\-escape\fR
use C escapes in output, no extended chars
.TP
\fB\-\-force\-po\fR
write PO file even if empty
.TP
\fB\-\-indent\fR
indented output style
.TP
\fB\-\-no\-location\fR
suppress '#: filename:line' lines
.TP
\fB\-\-add\-location\fR
preserve '#: filename:line' lines (default)
.TP
\fB\-\-strict\fR
strict Uniforum output style
.TP
\fB\-w\fR, \fB\-\-width\fR=\fINUMBER\fR
set output page width
.TP
\fB\-\-no\-wrap\fR
do not break long message lines, longer than
the output page width, into several lines
.TP
\fB\-\-sort\-output\fR
generate sorted output
.TP
\fB\-\-sort\-by\-file\fR
sort output by file location
.SS "Informative output:"
.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
.TP
\fB\-V\fR, \fB\-\-version\fR
output version information and exit
.SH AUTHOR
Written by Bruno Haible.
.SH "REPORTING BUGS"
Report bugs to <bug-gnu-gettext@gnu.org>.
.SH COPYRIGHT
Copyright \(co 2001-2002 Free Software Foundation, Inc.
.br
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.SH "SEE ALSO"
The full documentation for
.B msggrep
is maintained as a Texinfo manual.  If the
.B info
and
.B msggrep
programs are properly installed at your site, the command
.IP
.B info msggrep
.PP
should give you access to the complete manual.