Perl Keyword Search (One Liner)


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/sh
  2.  
  3. tail -n5000 somefile | perl -ne "print $_ if /$1/i && /$2/i && /$3/i && /$4/i && /$5/i;"

URL: http://code.cshaiku.com/code_perl_keyword_search.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.