The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 01-27-2007
fredao fredao is offline
Registered User
 

Join Date: Dec 2006
Posts: 58
I think there is a misunderstanding, as I only want to keep the blocks whose id has a match in the second file. If I have a block as:

object
type="user"
id="999999999999"
encryptedPassword=""
>
<checkListAttributes>
</checkListAttributes>
</object>

and 999999999999 is not in the second file, the whole block should be discarded. but after I run your code, it is still there. any idea?
Reply With Quote