diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-18 21:54:45 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-03-18 21:54:45 +0200 |
commit | 480aca31c7772dafeb1b97cd7a768bca2f49d3c7 (patch) | |
tree | 0c8b33ff856793d1cc21f976a822a1d8b29991fe /extension/inplace.3am | |
parent | cd2ff61aaf4938092517880ad7655828d99a3cb9 (diff) | |
parent | 925f9363c4b0a5bb9375298afcdcf404efb32587 (diff) | |
download | egawk-480aca31c7772dafeb1b97cd7a768bca2f49d3c7.tar.gz egawk-480aca31c7772dafeb1b97cd7a768bca2f49d3c7.tar.bz2 egawk-480aca31c7772dafeb1b97cd7a768bca2f49d3c7.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'extension/inplace.3am')
-rw-r--r-- | extension/inplace.3am | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/extension/inplace.3am b/extension/inplace.3am index d6339c4a..f8fc098f 100644 --- a/extension/inplace.3am +++ b/extension/inplace.3am @@ -1,21 +1,10 @@ -.TH INPLACE 3am "Mar 16 2015" "Free Software Foundation" "GNU Awk Extension Modules" +.TH INPLACE 3am "Mar 18 2015" "Free Software Foundation" "GNU Awk Extension Modules" .SH NAME inplace \- emulate sed/perl/ruby in-place editing .SH SYNOPSIS .ft CW .nf -@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 rule. - -BEGINFILE { - inplace_begin(FILENAME, INPLACE_SUFFIX) -} - -ENDFILE { - inplace_end(FILENAME, INPLACE_SUFFIX) -} +gawk -i inplace ... .fi .ft R .SH DESCRIPTION @@ -27,8 +16,7 @@ and .BR inplace_end() . These functions are meant to be invoked from the .I inplace.awk -wrapper (whose contents are displayed above) -which is installed when +wrapper which is installed when .I gawk is. .PP @@ -45,10 +33,7 @@ extension concatenates that suffix onto the original filename and uses the result as a filename for renaming the original. ... .SH NOTES -.SH BUGS -As currently written, output from an \f(CWENDFILE\fP -rule does not get redirected into the replacement file. -Neither does output from an \f(CWEND\fP rule. +... .SH BUGS .SH EXAMPLE .ft CW .nf |