Bashだと、 diff
コマンドで標準入力を渡せる。
例:
diff <(cat file1 | sort | uniq) <(cat file2 | sort | uniq)
Fishではどうやるのか調べた結果、 psub
というものがあることを知った。
diff (cat file1 | sort | uniq | psub) (cat file2 | sort | uniq | psub)
参考
More than 5 years have passed since last update.
Bashだと、 diff
コマンドで標準入力を渡せる。
例:
diff <(cat file1 | sort | uniq) <(cat file2 | sort | uniq)
Fishではどうやるのか調べた結果、 psub
というものがあることを知った。
diff (cat file1 | sort | uniq | psub) (cat file2 | sort | uniq | psub)
参考
Register as a new user and use Qiita more conveniently