Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl Formatting Text

by NetWallah (Canon)
on Jun 23, 2016 at 04:40 UTC ( [id://1166353]=note: print w/replies, xml ) Need Help??


in reply to Perl Formatting Text

Here is the obligatory one-liner:
perl -an -E '$c=shift@F; say qq|$c $_\n| for sort {$a<=>$b} @F' your-f +ile.txt

        This is not an optical illusion, it just looks like one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-16 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found