Guest User

Untitled

a guest
Sep 9th, 2016
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proforg@toad-pc:~$ seq 100000000 > 100bln.txt
  2. proforg@toad-pc:~$ time cat 100bln.txt |awk '/200000/ {f=1} {if(f==1) {print}} /800000/{f=0}' >/dev/null
  3.  
  4. real 0m39.400s
  5. user 0m39.022s
  6. sys 0m6.534s
  7.  
  8. proforg@toad-pc:~$ time cat 100bln.txt |perl -ne 'print if(/200000/ .. /800000/)' >/dev/null
  9.  
  10. real 0m43.620s
  11. user 0m43.271s
  12. sys 0m3.742s
RAW Paste Data