aboutsummaryrefslogtreecommitdiff
path: root/bin/unf.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:09:24 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:09:24 +1300
commit960208a496240318b38a6a6cfdf1f5e266099c85 (patch)
treede7ff197a3514d3e0bcfa6acbfa748b2738c5692 /bin/unf.awk
parentRemove superfluous calls to next in sec(1df) (diff)
downloaddotfiles-960208a496240318b38a6a6cfdf1f5e266099c85.tar.gz
dotfiles-960208a496240318b38a6a6cfdf1f5e266099c85.zip
Stylistic tweaks to awk scripts
Diffstat (limited to 'bin/unf.awk')
-rw-r--r--bin/unf.awk8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/unf.awk b/bin/unf.awk
index 22a10aa8..a9837a8a 100644
--- a/bin/unf.awk
+++ b/bin/unf.awk
@@ -18,9 +18,7 @@ body {
}
# Write any buffer contents once we hit a line not starting with a space
-/^[^ \t]/ {
- wrbuf()
-}
+/^[^ \t]/ { wrbuf() }
# Append the current line to the buffer
{
@@ -29,6 +27,4 @@ body {
}
# Write the buffer out again when we hit the end
-END {
- wrbuf()
-}
+END { wrbuf() }