sd is an intuitive find & replace CLI.
https://github.com/chmln/sd| Installer Source| Releases (json) (tab)
sd is an intuitive find & replace CLI.
https://github.com/chmln/sd| Installer Source| Releases (json) (tab)
To update or switch versions, run webi sd@stable
(or @v0.7
, @beta
, etc).
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.local/bin/sd
sd is a productive and faster replacement of sed and awk command used for editing files in command line interface,it uses regex syntax similar to those used in JavaScript and Python
sd 'original word' 'final word' ./file_to_be_changed
echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1'
/word inside slashes/
cat exm.txt
here is an @example
cat exm.txt| sd -s '@' ''
here is an example