James' blog
Programming and System Administration
Wednesday, May 27, 2009
awk script to generate count of each program
#csv of format:
#the_program, any_data, any_data, ....
#
#this script counts number of repetitions of a program
cat program-list.csv | awk -F',' '/[a-zA-Z0-9]+/{print $1}' | sort | uniq -c
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment