summaryrefslogtreecommitdiffstats
path: root/contrib/awk/awklib/eg/misc/findpat.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/awklib/eg/misc/findpat.awk')
-rw-r--r--contrib/awk/awklib/eg/misc/findpat.awk10
1 files changed, 0 insertions, 10 deletions
diff --git a/contrib/awk/awklib/eg/misc/findpat.awk b/contrib/awk/awklib/eg/misc/findpat.awk
deleted file mode 100644
index e9bef9e..0000000
--- a/contrib/awk/awklib/eg/misc/findpat.awk
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- if ($1 == "FIND")
- regex = $2
- else {
- where = match($0, regex)
- if (where != 0)
- print "Match of", regex, "found at",
- where, "in", $0
- }
-}
OpenPOWER on IntegriCloud