This can be done using egrep (see the other follow-ups) or by Perl which
also shipped with Solaris and which provides a more convenient syntax for
regular expressions with tons of extra features (see "perldoc perlre"
for a summary). If you want to extract just the A-records (and no AAAA
records), I suggest to use following line
perl -ne 'print if /\bIN\s+A\b/' zone
Option "-n" is similar to "-n" of sed (implicit loop over all input
lines but without an implicit print) and "-e" tells that the following
argument is the actual Perl script. The statement causes all input lines
to be printed that match the given regular expression:
\b word boundary (you won't match WIN here)
\s space character including space, tabs etc. but no newline
\s+ at least one space character
Andreas.