gettext —
message translation front-end
  
    | gettext | [ -en] [textdomain]
      msgid | 
  
    | gettext | -s[-n]
      [msgid ...] | 
gettext attempts to translate a given
  msgid into the locale-specific string as determined by
  the environment. If a translation file is not found, or a translation for the
  given msgid is not found, the original string will be
  echoed.
If the textdomain is not provided as an
    argument, the TEXTDOMAIN environment variable will
    be consulted instead.
By default gettext will look for message
    catalogs in /usr/share/locale. If the environment
    variable TEXTDOMAINDIR is defined, then that will
    override the default location.
The following flags are available:
  - -e
- Interpret backslash escape sequences prior to translation.
- -h
- Print the usage information
- -n
- If -sis used, do not add the trailing newline. If-sis not provided, this flag will do
    nothing.
- -s
- Act similarly to echo(1). All
      msgid arguments will be translated, and a newline
      will be appended to the output string.
  - TEXTDOMAIN
- The domain to use when looking up msgids.
- TEXTDOMAINDIR
- The location of message catalogs to use, overriding
      /usr/share/locale.
Thegettext utility exits 0 on success,
  and >0 if an error occurs.
$ LANG=es gettext grep 'writing output'
escribiendo el resultado