avoid XML encode everything in utf-8 the swiss-knife of pattern extraction: grep -r -P ... other useful commands: wc, uniq, sort