aboutsummaryrefslogtreecommitdiff
path: root/bin/dam.sed
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-24 16:12:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-24 16:12:35 +1200
commit6ff90f1b613fa01098d2ad7fe38a56444c4fa1a7 (patch)
treec9e9ba2b87016fd2a8daa5b5433d5d0ba2119bba /bin/dam.sed
parentAdd missing dash (diff)
downloaddotfiles-6ff90f1b613fa01098d2ad7fe38a56444c4fa1a7.tar.gz
dotfiles-6ff90f1b613fa01098d2ad7fe38a56444c4fa1a7.zip
Change dam(1df) to a sed script
Diffstat (limited to 'bin/dam.sed')
-rw-r--r--bin/dam.sed8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/dam.sed b/bin/dam.sed
new file mode 100644
index 00000000..86fb03f9
--- /dev/null
+++ b/bin/dam.sed
@@ -0,0 +1,8 @@
+# Store up all input before emitting it unchanged as output
+1h
+1!H
+$ {
+ g
+ p
+}
+d