realpdm

Untitled

Jul 18th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. grep = cgi.params['grep'][0]
  2.  
  3. logfile.each_line do |line|
  4. next if grep && line !~ /#{grep.to_s}/
Advertisement
Add Comment
Please, Sign In to add comment