Benjamin's blog

Stuff about Linux, C++ and more

  • Home
  • About Me
  • « Reorganising large directories with efficient remote rsync update
  • Listing methods of an Objective-C class »
September 11, 2013

Diff the output of two processes

This is a small but useful bash trick to apply ‘diff’ to the output of two separate commands:

laptop-ben:~ benjamin$ diff <(echo a) <(echo b)
1c1
< a
---
> b
Posted by Benjamin van den Hout
Filed under: Linux
  • « Reorganising large directories with efficient remote rsync update
  • Listing methods of an Objective-C class »

Recent Posts

  • Re-using the last bash command argument
  • Extracting mp4 files from AVCHD without transcoding
  • Simple UDP relay with NAT latching in Python
  • Magnet handler script for Firefox on OSX
  • A better solution to C++ enums
  • Logging port access with iptables and logwatch
  • Easy chroot jail creation
  • Running autossh with OSX automator
  • Fixing bash tab completion in XFCE
  • Removing partial duplicate file names with awk

Blog Archive

  • Blog Archive

Categories

  • Applescript (1)
  • Bash (1)
  • Books (3)
  • C++ (33)
  • General (17)
  • Linux (37)
  • Objective-C (2)
  • OSX (3)
  • Python (1)
  • Sheevaplug (2)
  • Version Control (2)
  • Video (1)
  • VOIP (1)
  • WebRTC (1)

Search

© Copyright 2009 and later, Benjamin van den Hout. Powered by Tinkerer and Sphinx.