roryrjb / rf

A tiny and simple cross-platform file finder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:C 94.4%Language:CMake 2.9%Language:C++ 2.1%Language:Makefile 0.5%Language:Batchfile 0.1%