aboutsummaryrefslogtreecommitdiff
path: root/bin/bl.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-13 20:18:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-13 20:18:22 +1300
commite79e53c707145f7a7bdd4ae1049b4bc6dcbf28b7 (patch)
tree14daff1819711bd53ddf03a935717d7a3e9c2219 /bin/bl.awk
parentMerge branch 'feature/ax-safety' into develop (diff)
downloaddotfiles-e79e53c707145f7a7bdd4ae1049b4bc6dcbf28b7.tar.gz
dotfiles-e79e53c707145f7a7bdd4ae1049b4bc6dcbf28b7.zip
Reimplement bl(1df) in Awk
This is shorter and tidier.
Diffstat (limited to 'bin/bl.awk')
-rw-r--r--bin/bl.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bl.awk b/bin/bl.awk
new file mode 100644
index 00000000..0be2fc6e
--- /dev/null
+++ b/bin/bl.awk
@@ -0,0 +1,5 @@
+# Generate blank lines
+BEGIN {
+ while (ARGV[1]--)
+ print ""
+}