Thanks t, but the above does not work. grep -e '^04' is ok but grep -e '^(04|05)' does not work.
(HP-UX 11)
Secondly wouldnt a grp pattern file be faster than reading the file line by line and pattern matching like this
$_ =~ /^(04|05).
Thanks for your input again