Skip to content

Instantly share code, notes, and snippets.

@andreyp
Created November 9, 2011 08:01
Show Gist options
  • Save andreyp/1350792 to your computer and use it in GitHub Desktop.
Save andreyp/1350792 to your computer and use it in GitHub Desktop.
count tags in xml files
ls -lah | grep %filename%*.xml | awk '{print $9}' | xargs grep -c '%close tag%' | awk '{i = split($0,a,":"); print a['2']}' | awk '{s+=$1}END{print s}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment