Guest User

Untitled

a guest
Dec 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # Get overall feel of the xml's structure
  2. xml_elcount file.xml
  3.  
  4. # Enumerate name attribute values of class node
  5. xml sel -t -v '//class/@name' file.xml | sort > /tmp/lista
  6.  
  7. # Show common values between two sorted lists
  8. comm -12 /tmp/lista /tmp/listb
  9.  
  10. # Show values only in lista
  11. comm -23 /tmp/lista /tmp/listb
  12.  
  13. # Show values only in listb
  14. comm -13 /tmp/lista /tmp/listb
Add Comment
Please, Sign In to add comment