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
|
:
trap 'rm $TMP1 $TMP2' 0
TMP1=`mktemp /tmp/addidXXXXXXXX` || exit 1
TMP2=`mktemp /tmp/addidXXXXXXXX` || exit 1
./hxselect -s '\n' 'address:only-of-type' >$TMP1 <<-EOF
<div>
<p>Not this.</p>
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
</ul>
<address>This.</address>
<div title="Not this one."/>
<div title="Nor this one."></div>
</div>
EOF
cat >$TMP2 <<-EOF
<address>This.</address>
EOF
diff -u $TMP1 $TMP2
# cmp -s $TMP1 $TMP2
|