#/bin/sh

# this little filter allows to extract the node nesting from the DDF 
# and may come in handy for debugging

grep -n '<!--' OMA-SUP-MO_oma_bcast-V1_0-20080810-D.ddf > m.txt
grep -n "Node>" OMA-SUP-MO_oma_bcast-V1_0-20080810-D.ddf > n.txt
cat m.txt n.txt | /usr/bin/sort | grep -v Status >res.txt