====== SED - Align - Align all text flush right on a 79-column width ====== sed -e :a -e 's/^.\{1,78\}$/ &/;ta' # Set at 78 plus 1 space. ---- ===== Example ===== Running that command again this file: aaa bbb ccc returns: aaa bbb ccc