Skip to main content
7 events
when toggle format what by license comment
Aug 8, 2018 at 11:19 comment added Kusalananda The nice thing about this one is that the contents of the file is not necessarily read into memory (except possibly in chunks by sort).
May 3, 2016 at 13:34 history edited Jeff Schaller CC BY-SA 3.0
reformatted
Aug 17, 2012 at 23:46 history edited Frederik Deweerdt CC BY-SA 3.0
deleted 1 characters in body
Aug 6, 2012 at 16:41 comment added Peter.O @Frederik Deweerdt: Fast, but it loses the first line... @ ninjalj: reverse<) is fast: good! but the "really ugly" one is extremely slow as the number of lines increases.!!....
Mar 17, 2011 at 23:21 comment added ninjalj (Actually, there's a shorter one, but it's really ugly, witness its awfulness: perl -pe '$\=$_.$\}{' )
Mar 17, 2011 at 23:21 comment added ninjalj or the shorter perl -e 'print reverse<>'
Mar 16, 2011 at 14:14 history answered Frederik Deweerdt CC BY-SA 2.5