---
name: "sort-bed"
section: "1"
platform: "linux"
package: "bedops"
version: "2.4.41+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sort-bed"
---

# sort-bed(1)

manual page for sort-bed 2.4.41+dfsg

## NAME

sort-bed - manual page for sort-bed 2.4.41+dfsg

## DESCRIPTION

sort-bed

-

  citation: http://bioinformatics.oxfordjournals.org/content/28/14/1919.abstract

-

  https://doi.org/10.1093/bioinformatics/bts277

- version:

  2\.4.41 (typical)

- authors:

  Scott Kuehn

USAGE: sort-bed \[--help\] \[--version\] \[--check-sort\] \[--max-mem \<val\>\] \[--tmpdir \<path\>\] \[--unique\] \[--duplicates\] \<file1.bed\> \<file2.bed\> \<...\>

-

  Sort BED file(s). May use '-' to indicate stdin. Results are sent to stdout.

-

  \<val\> for **--max-mem** may be 8G, 8000M, or 8000000000 to specify 8 GB of memory. **--tmpdir** is useful only with **--max-mem**. **--unique** can be used to print only unique BED elements (similar to 'sort **-u**'). Cannot be used with **--duplicates**. **--duplicates** can be used to print only duplicated or repeated elements (similar to 'uniq **-d**'). Cannot be used with **--unique**.

## SEE ALSO

The full documentation for **sort-bed** is maintained as a Texinfo manual.  If the **info** and **sort-bed** programs are properly installed at your site, the command

-

  **info sort-bed**

should give you access to the complete manual.
