Guest User

Untitled

a guest
May 1st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.18 KB | None | 0 0
  1. #!/usr/bin/awk -f
  2. BEGIN {}
  3.  
  4. /\/datasheets\// { cnt[$7] = cnt[$7] + 1 }
  5.  
  6. {for (name in cnt) substr(name,13, length(name)-12)}
  7.  
  8. END{for (name in cnt) print name, name, cnt[name] }
Advertisement
Add Comment
Please, Sign In to add comment