Skip to content

Commit d76f068

Browse files
Add tally for TSV files
1 parent 8384514 commit d76f068

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: tally-tsv-record-count

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/awk -f
2+
3+
BEGIN {
4+
FS=OFS="\t"
5+
}
6+
{
7+
tally[$0]+=1
8+
}
9+
END {
10+
for (x in tally) {
11+
print tally[x], x
12+
}
13+
}

0 commit comments

Comments
 (0)