The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-29-2007
kam kam is offline
Registered User
  
 

Join Date: May 2007
Posts: 4
parsing output from a diff command...

hi,

i have a script which pipes the output of a diff -rq command into a separate file/ it would read something like this:


Files mod1/lala/xml/test1.txt and mod2/lala/xml/test1.txt differ
Only in mod2/lala/xml: test2.txt

What i need to do is to parse this file so i end up with just a list of directories in which the differences occur:

i.e.

mod2/lala/xml/

any ideas?