LoginSignup
6
2

More than 5 years have passed since last update.

Fish Shell で、 diff <(cat file1 | sort | uniq) <(cat file2 | sort | uniq) を実現

Last updated at Posted at 2017-03-27

Bashだと、 diff コマンドで標準入力を渡せる。

例:

diff <(cat file1 | sort | uniq) <(cat file2 | sort | uniq) 

Fishではどうやるのか調べた結果、 psub というものがあることを知った。

diff (cat file1 | sort | uniq | psub) (cat file2 | sort | uniq | psub) 

参考

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2