in reply to pattern match in text file

You didn't tell us what the results that you need look like, so it's a bit hard for us to tell you how to match for them.

In general, the script should look something like this:

while (<ARGV>) { print if /some_regexp/; }
Or, if you don't need the whole line, just parts of it,
print "$1 $2 (..etc)\n" if /some regexp with captures/;
To see how to construct the regular expressions, look at perldoc perlre.