Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielfalcao/rxnow
Aims at sorta-kinda Drop-in Replace GNU/Sed et al.
https://github.com/gabrielfalcao/rxnow
regex rust rx rxnow
Last synced: 39 minutes ago
JSON representation
Aims at sorta-kinda Drop-in Replace GNU/Sed et al.
- Host: GitHub
- URL: https://github.com/gabrielfalcao/rxnow
- Owner: gabrielfalcao
- Created: 2023-10-08T00:04:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-21T20:23:36.000Z (about 1 year ago)
- Last Synced: 2024-05-01T23:56:38.713Z (7 months ago)
- Topics: regex, rust, rx, rxnow
- Language: Rust
- Homepage: https://crates.io/crates/rxnow
- Size: 210 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rxnow
![docs/nightingale.svg](docs/nightingale.svg)
Experimental drop-in replacement for GNU/Sed
## Install
```bash
cargo install rxnow
```## Examples
```bash
curl -qs https://raw.githubusercontent.com/gabrielfalcao/rxnow/main/README.md | rxnow ".*(curl.*?[.]md).*" --replace '$1'
``````bash
$ rxnow --helpaims at sorta-kinda drop-in replace GNU/Sed et al.
Usage: rxnow [OPTIONS] [FILENAMES]...
Arguments:
the regex pattern
[FILENAMES]... list of files wherein search shall happen. Defaults to stdin if none is providedOptions:
-i, --ignore-case whether to ignore case
-I, --ignore-spaces whether to ignore spaces
-r, --replace replace (ft. group matching)
-n, --no-newline
-f, --show-filename
-a, --achromatic disable colored output
-c, --count counts occurrences of regex
-o, --omit-empty omits empty lines
-t, --trim strip space characters at both ends of each line
-d, --delete deletes portions of input-data matching the given expression
-l, --files-with-matches
-C, --context
-g, --group-color [default: 220]
-m, --match-color [default: 154]
-s, --source-color [default: 202]
-h, --help Print help
-V, --version Print version
```