Sort and deduplicateCommand line · 0/4 steps

Sort a filestep 1 of 4 · beginner

Support

The command is shown. Click it to run, or type your own.

By the end of this lesson you can
  • Order lines alphabetically and in reverse with sort and sort -r
  • Understand why uniq needs sorted input
  • Reduce a column to distinct values with sort | uniq
  • Surface repeated values with uniq -d

Before you startExtracting a column with cut, and the pipe |.

Plain sort orders lines alphabetically. Let's sort a gene list.

Sort the genes on chromosome 3 alphabetically.

workspace · terminal

Type a command, or click the suggested one. ↑/↓ recall history, Tab completes file names. New to this? Hit Explain this command to see it in plain English.

…
workspace/shared/data0 files
Booting the WebAssembly runtime…
Command line0 / 4 stepsStep 1WASM shell