An open API service indexing awesome lists of open source software.

https://github.com/riptl/hashr

Directory hashing utility, outputs to Redis
https://github.com/riptl/hashr

Last synced: 3 months ago
JSON representation

Directory hashing utility, outputs to Redis

Awesome Lists containing this project

README

          

### hashR

Simple tool that walks a directory recursively,
and outputs a list of hashes suitable for Redis.

**Usage:**
```
# Write directly to Redis
./hashr /directory | redis-cli

# Write to file and import
./hashr /directory > hashes.redis
redis-cli --pipe < hashes.redis
```

**Info:**

* The output (on stdout) looks like this:
```
SET "" "|||||"
```
* All hashes are hex-encoded.
* `-threads=x` (default: number of cores)
* `-prefix=/path/to/dir` (pretend files are in this dir)
* `-key=HASHDB` (Redis key of the [HASHES](https://redis.io/commands#hash) object)