diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-02 08:07:21 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-02 08:07:21 +0100 |
| commit | 302ac9f5271796d203772b7ff6b9a737c8e6da73 (patch) | |
| tree | 7e4e3ae23762f9108429d2c21d494600396938cf /templess | |
| parent | 6edcf79ec3474dc748bf3914099983c3ab51affe (diff) | |
| parent | 8aa8a247985a08add0f92a3d24272408526003ff (diff) | |
| download | scripts-302ac9f5271796d203772b7ff6b9a737c8e6da73.tar.gz scripts-302ac9f5271796d203772b7ff6b9a737c8e6da73.zip | |
Merge branch 'main' of https://github.com/sebastianotronto/scripts into main
Diffstat (limited to '')
| -rwxr-xr-x | templess | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Write standard in to a temporary file and sends it to a pager. | 3 | # Write standard in to a temporary file and sends it to a pager. |
| 4 | # This is used to be able to pipe the content displayed by less to | ||
| 5 | # an external program. | ||
| 4 | 6 | ||
| 5 | pager=${PAGER:-less} | 7 | pager=${PAGER:-less} |
| 6 | tempfile=$(mktemp) | 8 | tempfile=$(mktemp) |
