3 ms·
Show HN: ptrap, CLI tool to cache and interact with stdout
This is a tool I built over weekend to solve a common scenario I face: having to repeatedly query/grep output from an API call, which can be rather slow.
The idea is not novel. A similar tool exists https://github.com/elkowar/pipr https://github.com/elkowar/pipr but that is not windows friendly.
- oguz-ismail 2y agotrap is a UNIX sh built-in. Is this for Windows only?
- cyingfan 2y agoThanks for pointing out that trap is a shell function. I'll probably rename the project :D I tested in Windows and Ubuntu. Works in both.