Avoid rerunning a slow shell command

Building a shell one-liner means rerunning it many times while adjusting the later commands. If the first command is slow, every rerun waits for it again. bkt caches a command's output for a set time:

bkt --ttl=1m -- find ~ -name '*.log' 2>/dev/null | grep Library

The first run does the search and stores the output. For the next minute, the same command returns the stored output immediately, so the grep can change between runs without waiting on find.

    subscribe

    New entries from Event Log by email. No spam, unsubscribe any time.

    Or follow the RSS feed.