Help for this page

Select Code to Download


  1. or download this
    grep PATTERN FILE_TO_SEARCH_IN > FILE_WITH_SEARCH_RESULTS
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    while (<>) {
        print if m/$pattern/;
    }
    
  3. or download this
    perl script.pl PATTERN FILE_TO_SEARCH_IN > FILE_WITH_SEARCH_RESULTS