我试图将结果重定向rg
到comm
以比较匹配交集。Fish 似乎认为我将传递文件路径和而不是流。
> comm -12 <(rg -l "\\bar\\b" | sort) <(rg -l "@" | sort)
fish: Invalid redirection target: (rg -l "\\bar\\b" | sort)
comm -12 <(rg -l "\\bar\\b" | sort) <(rg -l "@" | sort)
^
fish: Invalid redirection target: (rg -l "@" | sort)
comm -12 <(rg -l "\\bar\\b" | sort) <(rg -l "@" | sort)