Help for this page

Select Code to Download


  1. or download this
    cat /etc/passwd | perl -e 'print join ":", @$_ for sort { $b->[2] <=> 
    +$a->[2] } map { [ split /:/, $_ ] } <>'
    
  2. or download this
    cat /etc/passwd | sort -t : -k3 -nr
    # the above method works great with GNU /bin/sort!