open CLEARDATA, "gunzip -c $filename |"; while () { /^my.*pattern$/ && print }