Help for this page

Select Code to Download


  1. or download this
    qwurx [shmem] ~> time perl -lne 'BEGIN{$,=" "}print+(split)[9,7,5,3,1]
    +' in.txt >/dev/null
    
    ...
    real    0m2.204s
    user    0m2.188s
    sys    0m0.016s
    
  2. or download this
    qwurx [shmem] ~> python
    Python 2.7.9 (default, Jun 29 2016, 13:08:31) 
    ...
    >>> line.split()[::-2]
    ['5', '3', '1']
    >>> ^D