yarrow/zet

zet doesn't seem to work with process substitution

Closed this issue · 2 comments

Hi,
I want to find the intersection of 2 ripgrep commands.
I thought of using process substitution:
zet <(rg --color=never --no-heading --no-column PATTERN1) <(rg --color=never --no-heading --no-column PATTERN2)
but it doesn't seem to work.

Did you leave out the intersect subcommand?

I think zet intersect <(rg --color=never --no-heading --no-column PATTERN1) <(rg --color=never --no-heading --no-column PATTERN2) will do what you want.