Find is an utility to search for specific files on your computer written in C++. This is an educational project, aimed at understanding how to interact with POSIX API to retrieve file information.
- Filter by name, size ranges, inodes and link counts
- Print results
- Pass results to executable
find <path> <args..>
- locate specifiс files in the provided path
-name <name>
- filter by filename equals<name>
-inum <number>
- filter by inode number equals<number>
-size <[-=+]size>
- filter by size (less, equal or more)-nlinks <number>
- hardlink count equals<num>
exec <executable>
- pass located files to executable file<executable>
$ mkdir build
$ cd build
$ cmake ..
$ make
Requires C++14 compiler
Tested manually on macOS Mojave 10.14.3 and Linux 4.12.
Pavel Ponomarev, 2019 (pavponn@gmail.com)
MIT License.