« HP the greenest company evar!!!oneoneSlashdot (useful) stupid unix tricks #3 - pushd popd »

Slashdot (useful) stupid unix tricks #4 Command output diff

12/09/08

Permalink 03:09:33 pm, by admin Email , 36 words   English (US) latin1
Categories: Technology, Unix, BSD, Linux, slashdot

Slashdot (useful) stupid unix tricks #4 Command output diff

Link: http://ask.slashdot.org/comments.pl?sid=1019609&cid=25651551

This one I really like and use from time to time. This allows you to get the differences between the output of two commands.


$ diff -u <(echo foo) <(echo bar) 
--- /dev/fd/63 2008-11-05 22:23:09.802184626 +0000 
+++ /dev/fd/62 2008-11-05 22:23:09.802184626 +0000 
@@ -1 +1 @@ -foo +bar   

enjoy! :D

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
September 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
This is for Unix articles.

Search

XML Feeds

Click some ads

google search

powered by b2evolution free blog software