aboutsummaryrefslogtreecommitdiff
path: root/bin/pph
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-06 13:59:26 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-06 13:59:26 +1300
commit13d4998ee636abbb5bf1b20acd5b19ecd8af0578 (patch)
tree91c7be8c6a76d8653fdae8feec0357cb0d2d89ed /bin/pph
parentAdd jfp(1df) (diff)
downloaddotfiles-13d4998ee636abbb5bf1b20acd5b19ecd8af0578.tar.gz
dotfiles-13d4998ee636abbb5bf1b20acd5b19ecd8af0578.zip
Add pp(1df) and pph(1df)
Diffstat (limited to 'bin/pph')
-rwxr-xr-xbin/pph5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/pph b/bin/pph
new file mode 100755
index 00000000..684aaafd
--- /dev/null
+++ b/bin/pph
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Run pp(1df) on args, prefix with machine hostname
+hostname=$(hostname -s) || exit
+pp "$@" |
+sed 's_^_'"$hostname":'_'