Skip to content

Instantly share code, notes, and snippets.

@riywo
Created March 4, 2011 03:45
Show Gist options
  • Save riywo/854138 to your computer and use it in GitHub Desktop.
Save riywo/854138 to your computer and use it in GitHub Desktop.
bashでプログラムの実行結果のdiffを取りたい時
diff -u <(echo hoge) <(echo fuga)
--- /dev/fd/63 2011-03-04 12:44:34.176435837 +0900
+++ /dev/fd/62 2011-03-04 12:44:34.176435837 +0900
@@ -1 +1 @@
-hoge
+fuga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment