perl -lne 'printf "%-76s", $_' infile > outfile #### perl -lni.bak -e 'printf "%-76s", $_' infile