Created
November 9, 2011 08:01
-
-
Save andreyp/1350792 to your computer and use it in GitHub Desktop.
count tags in xml files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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