2 ms·
Your question brings to light some of the deep flexibility current shells allow with a very terse syntax. At least from Nu you can accept and process the outpu
by tux1968 7y ago
Your question brings to light some of the deep flexibility current shells allow with a very terse syntax. At least from Nu you can accept and process the output of your script.
As an aside, your one liner is having to process every file twice, even ones that have already been excluded by the other ripgrep... something like this should be more performant:
rg -il $2 $(rg -il -t java -t go $1)
- zellyn 7y agoNice. Perhaps with an xargs thrown in to be safe...