sd
sd copied to clipboard
Intuitive find & replace CLI (sed alternative)
I expect `sd` to follow the STDIN, as it would do in sed. For example, I expect `journalctl -u dnscrypt-proxy.service -f | sd machinename home` to give consistent live output,...
One of the benefits of `sed` is that it allows multiple expressions to be chained in the same invocation of the binary. It appears that `sd` lacks this feature, which...
How to replace if the string is on a certain line number? For example, Replace foo with bar only on the 4th line. in sed the command looks like: `sed...
https://stackoverflow.com/a/25563135/10440128 limitation: only fixed strings
How to run multiple replace in one go. For example, `sed -i 's/foo/bar/g; s/baz/zab/g; s/Alice/Joan/g' file` How to replace multiple patterns with the same string. For example, Replace any of...
The README.md says I should run `[sudo] dnf install sd`. ``` $ LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 sudo dnf install sd Last metadata expiration check: ……… No match for argument: sd Error: Unable...
Source: [koi8-r.zip](https://github.com/chmln/sd/files/6393557/koi8-r.zip) ``` console $ sd -p "" $1 koi8-r.htm Error: Windows stdio in console mode does not support writing non-UTF-8 byte sequences ```
It would be helpful in some scripting and buildsystem work to be able to catch the case where what we're looking to replace didn't exist in the input, so an...
Helllo The preview feature is not convenient at all for large files. I propose an option to report some stats at the end of the operation. for exemple : time:...
Hi. Given the text below: ```toml [package] name = "foo" version = "0.1.0" edition = "2018" [dependencies] rocket = { version = "0.5.0-rc.1", default-features = false } serde = {...