sd
sd copied to clipboard
Intuitive find & replace CLI (sed alternative)
It would be really great to be able to install sd on Windows through the [windows package manager, `winget`](https://docs.microsoft.com/en-us/windows/package-manager/winget/).
D:\openvpn\config>sd a b *.txt The filename, directory name, or volume label syntax is incorrect. (os error 123)
`-b` flag, which creates a `inputfile.bak` backup before replacing.
Both perl and sed support the \L and \U modifiers to convert a match to lowercase or uppercase respectively: ``` $ echo 'cat dog cow' | sed 's/\(dog\)/\U\1/' cat DOG...
Doing `unzip -l sd.0.7.5-.x86_64-unknown-linux-gnu.zip` gives: ``` Archive: sd.0.7.5-.x86_64-unknown-linux-gnu.zip Length Date Time Name --------- ---------- ----- ---- 0 2020-05-04 23:03 b/ 0 2020-05-04 23:03 b/release/ 0 2020-05-04 23:03 b/release/build/ 0 2020-05-04...
There was a newly introduced typo in the assets names, breaking my own scripts. For instance, ``` https://github.com/chmln/sd/releases/download/v0.7.5/sd.0.7.5-.x86_64-unknown-linux-gnu.zip ``` would be expected to be ``` https://github.com/chmln/sd/releases/download/v0.7.5/sd-0.7.5-x86_64-unknown-linux-gnu.zip ```
`sd` can be useful in situations for typical search and replace. It would be nice to have an `--interactive` flag so that we can "yes" or "no" or "default" (==...
VSCode [July 2019 (version 1.37) release note](https://code.visualstudio.com/updates/v1_37) says: > Thanks to some upstream work in ripgrep, you can now use these features without enabling a special setting. ripgrep will fall...
The idea is to be able to search and replace some patterns, excepted those with another pattern in front or after the one we look for. I found some solutions...
Using `fd` (also `find`) with `--exec` should provide more easy and comfortable ways. ref) https://github.com/sharkdp/fd#parallel-command-execution