Word Wrap

Wrap text to specified line width.

Code

General
echo "$text" | fold -s -w "$width"

Parameters

Text to wrap

Maximum line width

Server

More Bash Snippets