4 ms·
> And yes I would prefer your second "mental overhead" way as it involves less typing. 1. It doesn't, just use zsh and piping into grep becomes a single charac
by patrec 6y ago
> And yes I would prefer your second "mental overhead" way as it involves less typing.
1. It doesn't, just use zsh and piping into grep becomes a single character, like so:
alias -g G='|grep -P'
2. Even apart from that I'm a bit sceptical that you can conjure up and type the necessary jq invocation in less time than you can type the fully spelled out grep line.
- lenkite 6y agoYes, jq is probably the wrong example to use here. Never seen such a tool with un-rememberable CLI syntax.