Subscribe

How to install replace in CentOS/RHEL 7 (x86_64)

Replace strings in textfile

License: GPLv2 http://www.mysql.com/

Install

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install replace

Description

This program replaces strings in files or from stdin to stdout. It accepts a list of from-string/to-string pairs and replaces each occurrence of a from-string with the corresponding to-string. The first occurrence of a found string is matched. If there is more than one possibility for the string to replace, longer matches are preferred before shorter matches.

RPMs

Danila Vershinin (2019-05-22) - Separate package just for the lovely replace
Danila Vershinin (2024-12-06) - upstream release v0.0.4
Danila Vershinin (2024-12-06) - upstream release v0.0.2
Danila Vershinin (2019-05-22) - initial release