gelinive

Créer des profils du manteau neigeux - retour accueil

git clone git://bebou.netlib.re/gelinive
Log | Files | Refs | README |

commit 3bab6f19a41b23b8dc9ee8be50e7c9c3ac65fec0
parent 4990320548963159aa6561e260ac2c7ef47596aa
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Mon, 11 Mar 2024 09:19:50 +0100

Input dans stdin ou fichier, on gère

Diffstat:
Mgelinive | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/gelinive b/gelinive @@ -1,18 +1,18 @@ #! /bin/sh -if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ] +if [ "$1" = "-h" -o "$1" = "--help" ] then lowdown -M title=gelinive -M section=1 -stman manpage | preconv | groff -Tutf8 -man | less -R -. exit 0 fi -tempfile=$(mktemp);trap "rm -rf $tempfile" EXIT +tempdir=$(mktemp -d);trap "rm -rf $tempdir" EXIT -< $1 ./calcR | - paste $1 - > $tempfile -< $tempfile ./sumcol 5 | - paste $tempfile - +cat ${1:-/dev/stdin} > $tempdir/in +< $tempdir/in ./calcR | + paste $tempdir/in - > $tempdir/temp +< $tempdir/temp ./sumcol 5 | + paste $tempdir/temp -