Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
        print "Record $. has $prob:\n$_" if $prob;
    }
    
  2. or download this
    # perl 1-liner to output one "tag" per line:
    
    perl -pe 's{^.*?<}{}; s{>[^<]*}{>\n}g;' file.xml | sort | uniq -c