Monthly Archives: July 2015

print the first k elements of each group within a comma separated file

Suppose I am given the following csv file: # input.csv a,1 a,2 a,3 b,5 b,6 b,7 and I want to produce the first 2 elements of each group labeled by column 1. # output.csv a,1 a,2 b,5 b,6 This is … Continue reading

Posted in Uncategorized | Leave a comment