replace2

The sane person's alternative to sed

Availability

Distro aarch64 noarch x86_64 Version
RHEL 10 2.24
RHEL 9 2.24
RHEL 8 2.24
RHEL 7 2.24
RHEL 6 2.24

Description

The replace package, first released way back in 1994, provides a much easier way than sed of replacing one or more strings with others in one or more text or binary files or from standard input.

Compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

Install

CentOS/RHEL 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install replace2
CentOS/RHEL 9
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install replace2
CentOS/RHEL 8
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install replace2
CentOS/RHEL 7
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 replace2
CentOS/RHEL 6
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install replace2