evvsubst – substitute variables in text in shell
First you need to install gettext, which by the way might be already installed, however you can install with
dnf install gettext
Details of the package:
- Name : gettext
- Arch : x86_64
- Epoch : 0
- Version : 0.19.4
- Release : 4.fc22
- Size : 4.6 M
- Repo : @System
- Summary : GNU libraries and utilities for producing multi-lingual messages
- URL : http://www.gnu.org/software/gettext/
- License : GPLv3+ and LGPLv2+
- Description : The GNU gettext package provides a set of tools and documentation for
- producing multi-lingual messages in programs. Tools include a set of
- conventions about how programs should be written to support message
- catalogs, a directory and file naming organization for the message
- catalogs, a runtime library which supports the retrieval of translated
- messages, and stand-alone programs for handling the translatable and
- the already translated strings. Gettext provides an easy to use
- library and tools for creating, using, and modifying natural language
- catalogs and is a powerful and simple method for internationalizing
- programs.
Usage examples:
cat file |envsubst # substitute variables and copy to clipboard cat file |envsubst |xclip -i
Related Articles:
- 2010/09/04 Remove some path from the PATH variable temporarily.
- 2010/06/21 concatenate compressed and uncompressed logs
- 2010/03/04 Bash histoy – common history in different terminals
- 2015/06/29 Easily monitor and archive your system log reports.
- 2015/04/30 tracer – trace outdated files on your system
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.