Initial Windows agent repository
This commit is contained in:
commit
a0db0c2e5b
10589 changed files with 3844063 additions and 0 deletions
18
OGP64/usr/share/awk/readfile.awk
Normal file
18
OGP64/usr/share/awk/readfile.awk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# readfile.awk --- read an entire file at once
|
||||
#
|
||||
# This file and how to use it are described in the manual.
|
||||
# Therefore, we respectfully advise you to Read The Fine Manual
|
||||
# for more information.
|
||||
#
|
||||
# Original idea by Denis Shirokov, cosmogen@gmail.com, April 2013
|
||||
|
||||
function readfile(file, tmp, save_rs)
|
||||
{
|
||||
save_rs = RS
|
||||
RS = "^$"
|
||||
getline tmp < file
|
||||
close(file)
|
||||
RS = save_rs
|
||||
|
||||
return tmp
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue