diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-08 18:08:33 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 18:08:33 +0200 |
commit | db378a556fe17d546501573ada3f2a416d0ee7fd (patch) | |
tree | 5b0fc338e23bb0cc3c973c9395a05edf5b1c7708 /p | |
parent | 78582b12232810e1221e746f2c439a54019154fc (diff) | |
download | xutil-db378a556fe17d546501573ada3f2a416d0ee7fd.tar.gz |
Add 'p' and 'P' utilities
Diffstat (limited to 'p')
-rwxr-xr-x | p | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#!/bin/sh + +# p -- maybe view command output in pager + +[ -t 0 ] && exec /bin/sh -c '"$@" | "$0"' "$0" "$@" + +cat | tee /var/tmp/pg |