Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
/ rf Public archive

A tiny and simple cross-platform file finder

License

Notifications You must be signed in to change notification settings

roryrjb/rf

Repository files navigation

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.

About

A tiny and simple cross-platform file finder

Resources

License

Stars

Watchers

Forks