LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

msggrep

searches PO files for messages

TLDR

Search for messages
$ msggrep -K -e "[pattern]" [input.po] -o [output.po]
copy
Search in translations
$ msggrep -T -e "[pattern]" [input.po]
copy
Search in source references
$ msggrep -N "[file.c]" [input.po]
copy
Invert match
$ msggrep -v -K -e "[pattern]" [input.po]
copy
Case insensitive search
$ msggrep -K -e "[pattern]" -i [input.po]
copy

SYNOPSIS

msggrep [options] [inputfile]

DESCRIPTION

msggrep searches PO files for messages. It's part of GNU gettext.The tool filters messages by pattern. Extracts matching entries to new PO file.

PARAMETERS

INPUTFILE

PO file to search.
-K
Search in msgid (key).
-T
Search in msgstr (translation).
-e PATTERN
Regular expression pattern.
-N FILE
Search by source reference.
-v
Invert match.
--help
Display help information.

INSTALL

sudo apt install gettext
copy
sudo dnf install gettext
copy
sudo pacman -S gettext
copy
sudo apk add gettext
copy
brew install gettext
copy
nix profile install nixpkgs#gettext
copy

CAVEATS

Part of gettext-tools. Regex syntax. Use -K for keys, -T for translations.

HISTORY

msggrep is part of GNU gettext, providing search functionality for translation files.

SEE ALSO

msgfilter(1), msgconv(1), grep(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid