Skip to content

Instantly share code, notes, and snippets.

@maeharin
Last active December 11, 2015 23:59
Show Gist options
  • Save maeharin/4680661 to your computer and use it in GitHub Desktop.
Save maeharin/4680661 to your computer and use it in GitHub Desktop.
標準入力同士のdiff(差分)をとる方法 original:http://blog.bsdhack.org/index.cgi/Computer/20120618.htm
# bash
# <と(の間はスペースが入らない
diff <(command1) <(command2)
# bash以外
command1 | ( command2 | diff /dev/fd/3 -) 3<&0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment