Help for this page

Select Code to Download


  1. or download this
    perl -ne 'print if !/^#/ and /foo/' /tmp/foo.txt
    
  2. or download this
    perl -ne 'print if /^[^#]*foo/' /tmp/foo.txt