plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

t.awk (189B)


      1 NF == 2	{
      2 		if($2 !~ / or / || $2 ~ /\(or/)
      3 			print $0
      4 		else {
      5 			n = split($2, a, / or /)
      6 			for(i = 1; i <= n; i++) {
      7 				printf "%s\t%s\n", $1, a[i]
      8 			}
      9 		}
     10 	}
     11 NF != 2 {
     12 	print $0
     13 	}