[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
didn't match pattern in some circumstance
From: |
Kibum Han |
Subject: |
didn't match pattern in some circumstance |
Date: |
Sun, 23 Jan 2005 17:48:21 +0900 (KST) |
Doing the follows, I found gawk work weird:
--- cut here ---
$ cat kaka.h
/*******************/
#define FREETYPE_MAJOR 2
$ gawk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
FREETYPE_MAJOR
$
... edit kaka.h
... add one '*' in the first line.
$ cat kaka.h
/********************/
#define FREETYPE_MAJOR 2
$ gawk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
$
--- cut here ---
gawk failed to match pattern.
Any ideas?
--
Kibum Han <address@hidden>