Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Rosetta Code: Long List is Long :awk(1)+sort(1)

by marioroy (Prior)
on Dec 12, 2022 at 13:47 UTC ( [id://11148782]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    54 seconds LANG=en_US.UTF-8
    33 seconds LANG=C sort -k2,2rn -k1,1
    23 seconds LANG=C sort -k1,1 | sort -k2,2rn
    
  2. or download this
    #!/bin/sh
    # https://www.perlmonks.org/?node_id=11148773
    ...
    | sort -k1,1 | sort -k2,2rn
    
    printf "total time: %d s\n" $SECONDS >&2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found