perl -pe 's/.*/$&." "x(76-$+[0])/e' <infile >outfile
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
In reply to Re: Trailing spaces to lines less than x characters
by aaron_baugher
in thread Trailing spaces to lines less than x characters
by mlsmit10
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |