about summary refs log tree commit diff stats

rf

A tiny and simple cross-platform file finder

Installation

Platform Support

Following platforms are supported:

  • Linux glibc/musl
  • macOS
  • Win32
  • FreeBSD
  • OpenBSD

From Source

Requirements:

Minimum requirements are a C99 compiler.

Building on POSIX:

$ make

Building on Windows:

Setup your environment with vcvars64.bat, then:

> make

Usage

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

rf uses fnmatch/PathMatchSpecA 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' anywhere in the name. Although this is less flexible, it can potentially make things easier and faster depending on the particular use case.