Hacker News new | ask | show | jobs
by patrec 2050 days 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.
1 comments

Yes, jq is probably the wrong example to use here. Never seen such a tool with un-rememberable CLI syntax.