Skip to content

Commit

Permalink
Added webart's one-liner.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannah committed Jan 14, 2014
1 parent e0bf572 commit 868d555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webart/sort.sh
@@ -1,2 +1,7 @@
sort -k 2 in.txt | perl -anE 'say "$F[0] " . localtime($F[1])'

# or

perl -anE 'push @rows, [$F[0],$F[1]]}{ say $_->[0]." ".localtime($_->[1]) for sort { $a->[1] <=> $b->[1] } @rows' in.txt


0 comments on commit 868d555

Please sign in to comment.