cli-fs-searcher
v1.0.1
Published
Recursively walk through the filesystem, searching for files and directories while optional filtering.
Downloads
2
Maintainers
Readme
cli-fs-searcher
Recursively walk through the filesystem, searching for files and directories while optional filtering.
Installation
Install using npm:
npm i -g cli-fs-searcher
Usage
Run in the terminal:
cli-fs-searcher --[PARAMETER]=[ARGUMENT]
| PARAMETER | required | description | | ------ | ------ | ------ | | DIR | required | base lookup directory | | PATTERN | optional | regular expression to test file/directory name | | MIN-SIZE | optional | minimum file size [B|K|M|G], should be skipped for directories | | MAX-SIZE | optional | maximum file size [B|K|M|G], should be skipped for directories | | TYPE | optional | [D|F] D - directory, F - file |
(B - bytes, K - kilobytes, M - megabytes, G - gigabytes)
!!! Parameters order is not strict! Any order should work!!!
Example
cli-fs-searcher --PATTERN=\.txt --MIN-SIZE=40B --MAX-SIZE=40K --TYPE=F --DIR=/home/rostislav/Downloads
License and Copyright
This software is released under the terms of the ISC license.