synix/modules/home/common/fr.sh
sid eac3b0c3ea
All checks were successful
Build tests / build-hosts (pull_request) Successful in 27s
Flake check / flake-check (pull_request) Successful in 37s
zsh: add fr function
2026-05-31 21:01:15 +02:00

7 lines
126 B
Bash

#!/usr/bin/env bash
# find and replace strings with rg
# Usage: fr OLD NEW
fr() {
rg -lF "$1" | xargs sed -i "s|$1|$2|g"
}