05-09-2008
173,
5
Join Date: Apr 2008
Last Activity: 11 February 2013, 3:10 PM EST
Location: Bangalore
Posts: 173
Thanks Given: 0
Thanked 5 Times in 4 Posts
Hi,
This also might be useful
awk '{ x=gsub(/<song_id>/,yyy,$0)
total1+=x
y=gsub(/<\/song_id>/,xxx,$0)
total2+=y }
END { print "Occurences of <song_id> is ",total1,"\n","Occurences of </song_id> is ",total2}' filename
Thanks
Penchal