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:

testfile
aaa
bbb
ccc

returns:

testfile
                                                                            aaa
                                                                            bbb
                                                                            ccc