Help for this page

Select Code to Download


  1. or download this
    cd /path/to/search
    grep -l pattern_to_find *
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    print "The pattern {$regex} was found in ", scalar @matches, " files:\
    +n";
    print "@matches\n";