diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-07-02 17:36:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-07-02 22:57:07 +1200 |
commit | 95276f25769a0607cda50041169197d0522b98ff (patch) | |
tree | 3a4738901390c94f76de6ee7b6394d39b4c1ed00 /bin/unf.awk | |
parent | Coerce seed to number (diff) | |
download | dotfiles-95276f25769a0607cda50041169197d0522b98ff.tar.gz dotfiles-95276f25769a0607cda50041169197d0522b98ff.zip |
Lots of cleanup of awk scripts
Mostly inspired by suggestions from gawk --lint
Diffstat (limited to 'bin/unf.awk')
-rw-r--r-- | bin/unf.awk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/unf.awk b/bin/unf.awk index ac6172f7..7acb09c2 100644 --- a/bin/unf.awk +++ b/bin/unf.awk @@ -1,5 +1,7 @@ # Unfold header lines in an internet message, don't touch the body +BEGIN { buf = "" } + # Function to write and empty the buffer function wrbuf() { if (length(buf)) |