#!/usr/bin/perl # $start=shift; $pattern=shift; open(FILE,"$start"); while (){ if (/$pattern/) { print; } }