summaryrefslogtreecommitdiff
path: root/awklib/eg
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-01-09 14:47:51 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-01-09 14:47:51 +0200
commit81df0ef6c9ae780d1b4a9f784a611e9c8a07789f (patch)
tree689a4bbef261cf80b580438f1e7294060d7a9514 /awklib/eg
parent1abfe5e82822a9e81a3bd1df2e7747afbc0ae1b9 (diff)
downloadgawk-81df0ef6c9ae780d1b4a9f784a611e9c8a07789f.tar.gz
Minor edits to inplace extension doc.
Diffstat (limited to 'awklib/eg')
-rw-r--r--awklib/eg/lib/inplace.awk10
1 files changed, 5 insertions, 5 deletions
diff --git a/awklib/eg/lib/inplace.awk b/awklib/eg/lib/inplace.awk
index a090d9e0..6403a228 100644
--- a/awklib/eg/lib/inplace.awk
+++ b/awklib/eg/lib/inplace.awk
@@ -2,13 +2,13 @@
@load "inplace"
-# Please set INPLACE_SUFFIX to make a backup copy. For example,
-# you may want to set INPLACE_SUFFIX to .bak on the command-line or in a
-# BEGIN block.
+# Please set INPLACE_SUFFIX to make a backup copy. For example, you may
+# want to set INPLACE_SUFFIX to .bak on the command line or in a BEGIN rule.
BEGINFILE {
- inplace_begin(FILENAME, INPLACE_SUFFIX)
+ inplace_begin(FILENAME, INPLACE_SUFFIX)
}
+
ENDFILE {
- inplace_end(FILENAME, INPLACE_SUFFIX)
+ inplace_end(FILENAME, INPLACE_SUFFIX)
}