Crates.io | cashe |
lib.rs | cashe |
version | 0.1.0 |
source | src |
created_at | 2021-10-23 20:49:56.958488 |
updated_at | 2021-10-23 20:49:56.958488 |
description | Command line utility for caching and recalling output |
homepage | |
repository | |
max_upload_size | |
id | 470019 |
size | 4,175 |
cash
is a command line tool to cache program output so you can grep/awk/whatever without polluting local dir.
$ cash find / #this caches the output
# output
$ cash | grep 'xyz' #this pipes output to grep
Requires cargo.
$ cargo build --release
$ sudo ln -s $(pwd)/target/release/cash /usr/local/bin/cash
This can be used to name the output. Usage with this is similar to above,
$ cash -n test find /
# output
$ cash -n test | grep 'xyz'
If you want to use a special dir for caching, use this flag. If you want to permanently use this dir then use an alias with your shell.