sd
sd copied to clipboard
Intuitive find & replace CLI (sed alternative)
The trailing newline is a posix standard, which the normal posix tools rightfully ignores. `sd` however seems not to. ```shell pbsds@bjarte ~$ echo -e "1\n2\n3" | sed -e 's/^/prefix-/' prefix-1...
Hi, cool project! I added tab completions for fish shell: ``` complete sd -x -s f -l flags -d " Regex flags. May be combined (like `-f mc`)." complete sd...
It would be nice to able to do a search and replace on an entire tree of files.
When I run `sd 0.146.0 0.147.0 *.*s` in a directory, all files that match `*.*s` have their modified metadata to the time of the command execution, including files that don't...
Thank you for `sd` it is fast and easy to use. At the moment `sd` prints the line unchanged, if the regex does not match. It would be nice to...
Bumps [thread_local](https://github.com/Amanieu/thread_local-rs) from 1.1.3 to 1.1.4. Commits 4a54e57 Bump version to 1.1.4 ebf8b45 Merge pull request #34 from ibraheemdev/patch-1 3d69afa Fix memory ordering in RawIter::next See full diff in compare...
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.3 to 1.5.5. Changelog Sourced from regex's changelog. 1.5.5 (2022-03-08) This releases fixes a security bug in the regex compiler. This bug permits a vector for a...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.3 to 0.8.8. Release notes Sourced from crossbeam-utils's releases. crossbeam-utils 0.8.8 Fix a bug when unstable loom support is enabled. (#787) crossbeam-utils 0.8.7 Add AtomicCell<{i*,u*}>::{fetch_max,fetch_min}. (#785) Add...
Bumps [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) from 0.8.0 to 0.8.1. Release notes Sourced from crossbeam-deque's releases. crossbeam-deque 0.8.1 Fix deque steal race condition. (https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw) Add Stealer::len method. (#708) Changelog Sourced from crossbeam-deque's changelog. Version...
It would be nice to have an option to only output matched lines: ``` $ cat test.txt foo aaa bar baz foo bbb bar $ sd 'foo (.*) bar' '$1'...