~yerinalexey/rex

rex/README.md -rw-r--r-- 2.1 KiB
Use -p to print matched lines

Printing the regular expression used for matching is not such a good
use-case. Printing matched lines on the other hand, will allow using rex
as an interactive regex-based text filter.
Strip \r from lines

This fixes issues with files using CRLF as line ending.
Remove sh syntax in README
Default --print to false
Rename --print-regex to just --print
Rewrite documentation

* Use passive voice where possible
* Avoid "regex" and say "input field" instead
* Other style improvements
Wrap readme to 80 columns instead of 72
Update style of README
Improve overall installation process
Use pflag module for option parsing

The default flag module makes long options a bit confusing by adding a
single dash before them. With pflag, long options have --option and -o
for short options.
Reverse -no-print

It should be opt-in instead of opt-out.
3e32b66b — Alexey Yerin 9 months ago
readme: add screenshot
03d0ea2e — Alexey Yerin 9 months ago
Update README
31c0a0cf — Alexey Yerin 9 months ago 1.0.0
Add version
8e5d320a — Alexey Yerin 9 months ago
Document default for -no-print
1e10f2a8 — Alexey Yerin 9 months ago
readme: add section about flags
0576f7bd — Alexey Yerin 9 months ago
Add -no-print option to prevent printing regex
fb2cf1af — Alexey Yerin 9 months ago
Style fixes in README
3c962169 — Alexey Yerin 9 months ago
Update usage information
Add support for STDIN

This adds the ability to read from stdin, as opposed to reading a file.
A simple example would be the following:

printf "foo\nbar\n" | rex

If text is piped from stdin *and* from a file, the file will be
prioritized:

printf "foo\nbar\n" | rex test.txt
Next