10 lines
187 B
Awk
10 lines
187 B
Awk
|
{
|
||
|
if ($1 == "FIND")
|
||
|
regex = $2
|
||
|
else {
|
||
|
where = match($0, regex)
|
||
|
if (where != 0)
|
||
|
print "Match of", regex, "found at", where, "in", $0
|
||
|
}
|
||
|
}
|