commands.sh

boxes

all

Draw, remove, and repair ASCII art boxes.

More info →

Options (4)

-r, --removeboolean

Remove a box from a string

Example: echo "{{string}}" | boxes {{[-r|--remove]}}
-d, --designboolean

Specify the box design

Example: echo "{{string}}" | boxes {{[-d|--design]}} {{parchment}}
-s, --sizeboolean

Specify the box size (in columns by lines)

Example: echo "{{string}}" | boxes {{[-s|--size]}} {{10}}x{{5}}
-a, --alignboolean

Align the box text [h]orizonally (at [l]eft, [c]enter, or [r]ight)

Example: echo "{{string}}" | boxes {{[-a|--align]}} h{{l|c|r}}

Examples (7)

Draw a box around a string

echo "string" | boxes

Remove a box from a string

echo "string" | boxes [-r|--remove]

Specify the box design

echo "string" | boxes [-d|--design] parchment

Specify the box size (in columns by lines)

echo "string" | boxes [-s|--size] 10x5

Align the box text [h]orizonally (at [l]eft, [c]enter, or [r]ight)

echo "string" | boxes [-a|--align] hl|c|r

Align the box text [v]ertically (at [t]op, [c]enter, or [b]ottom)

echo "string" | boxes [-a|--align] vt|c|b

[j]ustify the box text (at [l]eft, [c]enter, or [r]ight)

echo "string" | boxes [-a|--align] jl|c|rvt
made by @shridhargupta | data from tldr-pages