diff options
author | Rory Bradford <roryrjb@gmail.com> | 2021-07-01 10:53:41 +0100 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2021-07-01 10:53:41 +0100 |
commit | 5fcab43f887d02ad7b772e4f1989404318a368d0 (patch) | |
tree | a61535db502338882d8ab1a63b32d8e8e9aa5003 | |
parent | 40ffdae01c377493a6f4ef3e8408bc0c1f9d71ff (diff) | |
download | rf-5fcab43f887d02ad7b772e4f1989404318a368d0.tar.gz |
Update README
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-rw-r--r-- | README.md | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/README.md b/README.md index 450e6b7..64ffacd 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,37 @@ ### From Source -Absolute minimum requirements are a C99 compiler. `rf` has been successfully -tested on OpenBSD, FreeBSD and Linux (with glibc and musl), on amd64 and arm -and with clang and gcc. For man pages you will require +__Requirements:__ + +Minimum requirements are a C99 compiler and a POSIX-like environment. The build +system is `make`, any flavour _should_ be fine. For man pages you will require [__scdoc__(1)](https://sr.ht/~sircmpwn/scdoc/). - $ make install +__Building:__ + +Unless you have custom requirements, just use `make`, the following options +are available: + + $ make # -> dynamic binary + $ make static # -> static binary + # make install # -> install dynamic binary and man pages to PREFIX ## Usage -See `man rf` for more details and examples. \ No newline at end of file +### Command Line + +Let's start with a few simple examples. + +If you want to find all `.c` files recursively from the current directory: + + $ rf \*.c + +This is essentially a shortened version of the traditional `find . -name \*.c`. +Underneath rf uses [`fnmatch`](https://man.openbsd.org/fnmatch) so all the usual +glob rules apply. You can also use substring matching instead, something like: + + $ rf -s hello + +This would match any files with 'hello' any where in the name. Although this is +less flexible, it can potentially make things easier and faster depending on +the particular use case. |