just-top-hits1
Truncate a tab-delimited file
Usage
just-top-hits [N]
Overview
just-top-hits is a Unix-style filter that truncates a tab-delimited file (primarily) pre-sorted in some fashion by its first field, keeping only those lines with the first N distinct values of that field. N defaults to 1 if not specified, and comparisons are case-sensitive.