SSD Nodes Learn Hosting plans →

#bash

Filtering by topic #bash · clear

Guides

Pipe output to two commands with tee

A pipe has one reader, so feeding two commands needs tee. Copy a stream to a file, append with tee -a, fan out with process substitution, and read PIPESTATUS.

Guides

Bash history expansion: !! and !$

!! repeats the last command and !$ gives you its last argument. Learn the six bash history expansions worth knowing, plus :p to print one before it runs.