man-pages/man1/msggrep.1.html
2021-03-31 01:06:50 +01:00

239 lines
7.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MSGGREP</TITLE>
</HEAD><BODY>
<H1>MSGGREP</H1>
Section: GNU (1)<BR>Updated: June 2016<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
msggrep - pattern matching on message catalog
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>msggrep</B>
[<I>OPTION</I>] [<I>INPUTFILE</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Extracts all messages of a translation catalog that match a given pattern
or belong to some given source files.
<P>
Mandatory arguments to long options are mandatory for short options too.
<A NAME="lbAE">&nbsp;</A>
<H3>Input file location:</H3>
<DL COMPACT>
<DT id="1">INPUTFILE<DD>
input PO file
<DT id="2"><B>-D</B>, <B>--directory</B>=<I>DIRECTORY</I><DD>
add DIRECTORY to list for input files search
</DL>
<P>
If no input file is given or if it is -, standard input is read.
<A NAME="lbAF">&nbsp;</A>
<H3>Output file location:</H3>
<DL COMPACT>
<DT id="3"><B>-o</B>, <B>--output-file</B>=<I>FILE</I><DD>
write output to specified file
</DL>
<P>
The results are written to standard output if no output file is specified
or if it is -.
<A NAME="lbAG">&nbsp;</A>
<H3>Message selection:</H3>
<DL COMPACT>
<DT id="4"><DD>
[-N SOURCEFILE]... [-M DOMAINNAME]...
[-J MSGCTXT-PATTERN] [-K MSGID-PATTERN] [-T MSGSTR-PATTERN]
[-C COMMENT-PATTERN] [-X EXTRACTED-COMMENT-PATTERN]
</DL>
<P>
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 <B>-J</B> is given and its context (msgctxt) matches MSGCTXT-PATTERN,
or if <B>-K</B> is given and its key (msgid or msgid_plural) matches MSGID-PATTERN,
or if <B>-T</B> is given and its translation (msgstr) matches MSGSTR-PATTERN,
or if <B>-C</B> is given and the translator's comment matches COMMENT-PATTERN,
or if <B>-X</B> is given and the extracted comment matches EXTRACTED-COMMENT-PATTERN.
<P>
When more than one selection criterion is specified, the set of selected
messages is the union of the selected messages of each criterion.
<P>
MSGCTXT-PATTERN or MSGID-PATTERN or MSGSTR-PATTERN or COMMENT-PATTERN or
EXTRACTED-COMMENT-PATTERN syntax:
<DL COMPACT>
<DT id="5"><DD>
[-E | <B>-F]</B> [-e PATTERN | <B>-f</B> FILE]...
</DL>
<P>
PATTERNs are basic regular expressions by default, or extended regular
expressions if <B>-E</B> is given, or fixed strings if <B>-F</B> is given.
<DL COMPACT>
<DT id="6"><B>-N</B>, <B>--location</B>=<I>SOURCEFILE</I><DD>
select messages extracted from SOURCEFILE
<DT id="7"><B>-M</B>, <B>--domain</B>=<I>DOMAINNAME</I><DD>
select messages belonging to domain DOMAINNAME
<DT id="8"><B>-J</B>, <B>--msgctxt</B><DD>
start of patterns for the msgctxt
<DT id="9"><B>-K</B>, <B>--msgid</B><DD>
start of patterns for the msgid
<DT id="10"><B>-T</B>, <B>--msgstr</B><DD>
start of patterns for the msgstr
<DT id="11"><B>-C</B>, <B>--comment</B><DD>
start of patterns for the translator's comment
<DT id="12"><B>-X</B>, <B>--extracted-comment</B><DD>
start of patterns for the extracted comment
<DT id="13"><B>-E</B>, <B>--extended-regexp</B><DD>
PATTERN is an extended regular expression
<DT id="14"><B>-F</B>, <B>--fixed-strings</B><DD>
PATTERN is a set of newline-separated strings
<DT id="15"><B>-e</B>, <B>--regexp</B>=<I>PATTERN</I><DD>
use PATTERN as a regular expression
<DT id="16"><B>-f</B>, <B>--file</B>=<I>FILE</I><DD>
obtain PATTERN from FILE
<DT id="17"><B>-i</B>, <B>--ignore-case</B><DD>
ignore case distinctions
<DT id="18"><B>-v</B>, <B>--invert-match</B><DD>
output only the messages that do not match any
selection criterion
</DL>
<A NAME="lbAH">&nbsp;</A>
<H3>Input file syntax:</H3>
<DL COMPACT>
<DT id="19"><B>-P</B>, <B>--properties-input</B><DD>
input file is in Java .properties syntax
<DT id="20"><B>--stringtable-input</B><DD>
input file is in NeXTstep/GNUstep .strings syntax
</DL>
<A NAME="lbAI">&nbsp;</A>
<H3>Output details:</H3>
<DL COMPACT>
<DT id="21"><B>--color</B><DD>
use colors and other text attributes always
<DT id="22"><B>--color</B>=<I>WHEN</I><DD>
use colors and other text attributes if WHEN.
WHEN may be 'always', 'never', 'auto', or 'html'.
<DT id="23"><B>--style</B>=<I>STYLEFILE</I><DD>
specify CSS style rule file for <B>--color</B>
<DT id="24"><B>--no-escape</B><DD>
do not use C escapes in output (default)
<DT id="25"><B>--escape</B><DD>
use C escapes in output, no extended chars
<DT id="26"><B>--force-po</B><DD>
write PO file even if empty
<DT id="27"><B>--indent</B><DD>
indented output style
<DT id="28"><B>--no-location</B><DD>
suppress '#: filename:line' lines
<DT id="29"><B>-n</B>, <B>--add-location</B><DD>
preserve '#: filename:line' lines (default)
<DT id="30"><B>--strict</B><DD>
strict Uniforum output style
<DT id="31"><B>-p</B>, <B>--properties-output</B><DD>
write out a Java .properties file
<DT id="32"><B>--stringtable-output</B><DD>
write out a NeXTstep/GNUstep .strings file
<DT id="33"><B>-w</B>, <B>--width</B>=<I>NUMBER</I><DD>
set output page width
<DT id="34"><B>--no-wrap</B><DD>
do not break long message lines, longer than
the output page width, into several lines
<DT id="35"><B>--sort-output</B><DD>
generate sorted output
<DT id="36"><B>--sort-by-file</B><DD>
sort output by file location
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H3>Informative output:</H3>
<DL COMPACT>
<DT id="37"><B>-h</B>, <B>--help</B><DD>
display this help and exit
<DT id="38"><B>-V</B>, <B>--version</B><DD>
output version information and exit
</DL>
<A NAME="lbAK">&nbsp;</A>
<H2>AUTHOR</H2>
Written by Bruno Haible.
<A NAME="lbAL">&nbsp;</A>
<H2>REPORTING BUGS</H2>
Report bugs to &lt;<A HREF="mailto:bug-gnu-gettext@gnu.org">bug-gnu-gettext@gnu.org</A>&gt;.
<A NAME="lbAM">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2001-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</A>&gt;
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAN">&nbsp;</A>
<H2>SEE ALSO</H2>
The full documentation for
<B>msggrep</B>
is maintained as a Texinfo manual. If the
<B>info</B>
and
<B>msggrep</B>
programs are properly installed at your site, the command
<DL COMPACT>
<DT id="39"><DD>
<B>info msggrep</B>
</DL>
<P>
should give you access to the complete manual.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="40"><A HREF="#lbAB">NAME</A><DD>
<DT id="41"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="42"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DL>
<DT id="43"><A HREF="#lbAE">Input file location:</A><DD>
<DT id="44"><A HREF="#lbAF">Output file location:</A><DD>
<DT id="45"><A HREF="#lbAG">Message selection:</A><DD>
<DT id="46"><A HREF="#lbAH">Input file syntax:</A><DD>
<DT id="47"><A HREF="#lbAI">Output details:</A><DD>
<DT id="48"><A HREF="#lbAJ">Informative output:</A><DD>
</DL>
<DT id="49"><A HREF="#lbAK">AUTHOR</A><DD>
<DT id="50"><A HREF="#lbAL">REPORTING BUGS</A><DD>
<DT id="51"><A HREF="#lbAM">COPYRIGHT</A><DD>
<DT id="52"><A HREF="#lbAN">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:19 GMT, March 31, 2021
</BODY>
</HTML>