View this package for all CentOS/RHEL versions →
How to install replace in CentOS/RHEL 8 (x86_64)
Replace strings in textfile
Install
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -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.
Compatibility
This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.
RPMs
| Package | Size | Changelog |
|---|---|---|
| replace-5.6.44-2.el8.x86_64 | 966 KiB |
Danila Vershinin (2019-05-22) - Separate package just for the lovely replace |
| replace-0.0.4-1.el8.x86_64 | 14 KiB |
Danila Vershinin (2024-12-06) - upstream release v0.0.4 |