diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-22 11:02:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-22 11:02:12 +1200 |
commit | e2468cb0f96864259bfd4518a72b2291054e325e (patch) | |
tree | dfd713e51235438d3e4083443a5cd25f9c33d78b /bin/pph.sh | |
parent | Just use whichever vi(1) we need as VISUAL (diff) | |
download | dotfiles-e2468cb0f96864259bfd4518a72b2291054e325e.tar.gz dotfiles-e2468cb0f96864259bfd4518a72b2291054e325e.zip |
Avoid awk(1) fork in pph(1df)
Diffstat (limited to 'bin/pph.sh')
-rw-r--r-- | bin/pph.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ # Run pp(1df) on args, prefix with machine hostname hn=$(hostname -s) || exit -pp "$@" | -awk -v hn="$hn" '{ print hn ":" $0 }' +pp "$@" | while IFS= read -r path ; do + printf '%s:%s\n' "$hn" "$path" +done |