github.com/jfontan/parallel-find
main / published Jan 21, 2022 / repository
Parallel file find command
Parallel Find
This crystal library and command searches files in a path that match a regexp. It parallelizes file walk and matching.
Installation
$ git clone https://github.com/jfontan/parallel-find
$ cd parallel-find
$ shards build --production -Dpreview_mt
It builds the command to bin/pf
Usage
Usage: pf [options] [pattern] [path]
-h, --help Show help
-j JOBS, --jobs=JOBS The number of parallel threads
By default lists all files in the current directory. You can use "" to match all files. For example to find all files in / you can run:
$ pf "" /
If your machine has less than 4 threads or you specify -j 1 the search will be sequential. By default it tries to use all threads.
Contributing
- Fork it (https://github.com/jfontan/parallel-find/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Javi Fontan - creator and maintainer