Guest User

Untitled

a guest
Sep 9th, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proforg@toad-pc:~$ cat 100bln.txt | wc -l
  2. 100000000
  3. proforg@toad-pc:~$ time cat 100bln.txt | awk '/200000/,/800000/ {print}' >/dev/null
  4.  
  5. real 0m25.079s
  6. user 0m24.654s
  7. sys 0m4.025s
  8. proforg@toad-pc:~$ time cat 100bln.txt | awk '/200000/ {f=1} {print} /800000/ {f=0}' > /dev/null
  9.  
  10. real 0m35.815s
  11. user 0m35.404s
  12. sys 0m6.764s
  13. proforg@toad-pc:~$ time cat 100bln.txt | perl -ne 'print if(/200000/ .. /800000/)' > /dev/null
  14.  
  15. real 0m42.575s
  16. user 0m42.292s
  17. sys 0m3.868s
RAW Paste Data