#!/usr/bin/env bash # -t turns ragged whitespace columns into an aligned table printf '%s\n' "name age" "alice 30" "bob 25" | column -t
align whitespace into a table