I like using pyx (installed by XML::PYX) for that kind of quick "grab info from a file":
pyx file.xml | perl -ln -e'if( /^\((.*)$/) { $tags{$1}++; } \ END { print foreach (sort keys %tags);\ print scalar(keys %tags), " tags in + the files"; }'
In reply to Re: Count number of unique tags in XML files
by mirod
in thread Count number of unique tags in XML files
by leriksen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |