← All commands
BROWSE BY TOPIC

#text

Practical commands for this part of your workflow.

47 commands

SMALL REFERENCE. USEFUL DETAILS.

awk

Process text line by line with patterns and actions.

GNU / macOS / Apple / BusyBox / mawk

cat

Print files, or standard input, one after another.

GNU / macOS / Apple / BusyBox

comm

Compare two sorted files and show lines unique to each or shared.

GNU / macOS / Apple / BusyBox

csplit

Cut a file into pieces at lines that match a pattern or a line number.

GNU / macOS / Apple

nl

Number the lines of a file.

GNU / macOS / Apple / BusyBox

paste

Join lines from several files side by side, or join one file's lines into one.

GNU / macOS / Apple / BusyBox

printf

Print text using a format string, with exact control over newlines and escapes.

Bash builtin / GNU / macOS / Apple / BusyBox

ptx

Make a permuted index, listing each word with the text around it.

GNU

rg

Search the files under a folder for a pattern, fast, ignoring what .gitignore ignores.

Upstream project

shuf

Shuffle lines into a random order, or pick random lines.

GNU / BusyBox

tac

Print the lines of a file in reverse order.

GNU / BusyBox

tail

Print the last lines or bytes of files, or follow a growing file.

GNU / macOS / Apple / BusyBox