I a little rusty on UNIX and was wondering if anyone can tell me the commands for this.
I have a database with group names,username and name
eg. B ID123 Jones/A
C iD122 SMilth/a
B id322 Hae/H
and want to just count the group names.
B 2
Cant seem to find how to do this.I have tried using
wc -l < .txt, but that only counts the lines,and not the group.
I have a database with group names,username and name
eg. B ID123 Jones/A
C iD122 SMilth/a
B id322 Hae/H
and want to just count the group names.
B 2
Cant seem to find how to do this.I have tried using
wc -l < .txt, but that only counts the lines,and not the group.