---
name: "just-top-hits"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "24.0.20250523+dfsg-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/just-top-hits"
---

# just-top-hits(1)

truncate a tab-delimited file

## NAME

just-top-hits - truncate a tab-delimited file

## SYNOPSIS

**just-top-hits** \[**N**\]

## DESCRIPTION

**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.

## SEE ALSO

[**filter-columns**(1)](/filter-columns/1.md), [**print-columns**(1)](/print-columns/1.md), [**reorder-columns**(1)](/reorder-columns/1.md), [**sort-table**(1)](/sort-table/1.md), [**xsearch**(1)](/xsearch/1.md).
