aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/misc/findpat.awk
diff options
context:
space:
mode:
Diffstat (limited to 'awklib/eg/misc/findpat.awk')
-rw-r--r--awklib/eg/misc/findpat.awk13
1 files changed, 6 insertions, 7 deletions
diff --git a/awklib/eg/misc/findpat.awk b/awklib/eg/misc/findpat.awk
index e9bef9ea..9d799434 100644
--- a/awklib/eg/misc/findpat.awk
+++ b/awklib/eg/misc/findpat.awk
@@ -1,10 +1,9 @@
{
- if ($1 == "FIND")
- regex = $2
- else {
- where = match($0, regex)
- if (where != 0)
- print "Match of", regex, "found at",
- where, "in", $0
+ if ($1 == "FIND")
+ regex = $2
+ else {
+ where = match($0, regex)
+ if (where != 0)
+ print "Match of", regex, "found at", where, "in", $0
}
}