Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Trailing spaces to lines less than x characters

by aaron_baugher (Curate)
on Jun 05, 2015 at 18:59 UTC ( [id://1129238]=note: print w/replies, xml ) Need Help??


in reply to Trailing spaces to lines less than x characters

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1129238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-03-28 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found