Server IP : 149.255.58.128 / Your IP : 216.73.216.233
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/share/awk//inplace.awk
# inplace --- load and invoke the inplace extension.
#
# Copyright (C) 2013, 2017, 2019 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
#
# GAWK is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# GAWK is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
# Andrew J. Schorr, aschorr@telemetry-investments.com
# January 2013
#
# Revised for namespaces
# Arnold Robbins, arnold@skeeve.com
# July 2017
# June 2019, add backwards compatibility
@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.
# Before there were namespaces in gawk, this extension used
# INPLACE_SUFFIX as the variable for making backup copies. We allow this
# too, so that any code that used the previous version continues to work.
# By default, each filename on the command line will be edited inplace.
# But you can selectively disable this by adding an inplace::enable=0 argument
# prior to files that you do not want to process this way. You can then
# reenable it later on the commandline by putting inplace::enable=1 before files
# that you wish to be subject to inplace editing.
# N.B. We call inplace::end() in the BEGINFILE and END rules so that any
# actions in an ENDFILE rule will be redirected as expected.
@namespace "inplace"
BEGIN {
enable = 1 # enabled by default
}
BEGINFILE {
sfx = (suffix ? suffix : awk::INPLACE_SUFFIX)
if (filename != "")
end(filename, sfx)
if (enable)
begin(filename = FILENAME, sfx)
else
filename = ""
}
END {
if (filename != "")
end(filename, (suffix ? suffix : awk::INPLACE_SUFFIX))
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 20 2025 21:42:20 | 0 / root | 0755 | |
| | | | | |
assert.awk | 0.374 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
bits2str.awk | 0.326 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
cliff_rand.awk | 0.3 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ctime.awk | 0.229 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ftrans.awk | 0.308 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
getopt.awk | 3.201 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
gettime.awk | 2.433 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
group.awk | 1.724 KB | March 30 2022 22:25:14 | 0 / root | 0644 | |
have_mpfr.awk | 0.216 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
inplace.awk | 2.285 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
intdiv0.awk | 0.451 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
join.awk | 0.369 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
libintl.awk | 0.232 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
noassign.awk | 0.412 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ns_passwd.awk | 1.252 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
ord.awk | 0.915 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
passwd.awk | 1.171 KB | March 30 2022 22:25:14 | 0 / root | 0644 | |
processarray.awk | 0.347 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
quicksort.awk | 1.007 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
readable.awk | 0.478 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
readfile.awk | 0.261 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
rewind.awk | 0.395 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
round.awk | 0.646 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
shellquote.awk | 0.461 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
strtonum.awk | 1.42 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
walkarray.awk | 0.209 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |
zerofile.awk | 0.414 KB | April 14 2020 11:44:15 | 0 / root | 0644 | |