home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / awk / awk320.zip / PAT.AWK < prev    next >
Text File  |  1990-02-08  |  115b  |  4 lines

  1. # verify that a record follows a pattern
  2.  
  3. NF==1{ if ( $1 ~ /^ab(ab|ba)*abba$/ ) print "yes" ; else print "no" }
  4.