[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] Faire des calculs sous bash



On Mon, Jan 08, 2001 at 10:43:11PM +0100, Claudio wrote:

> Moi j'essayerais un truc comme:
> 
> t=0; for x in fax*.tif; do s=`tiffdump $x |grep Directory|wc -l`; \
> t=$((t+s)); done

Bingo!

en rajoutant echo $t après la boucle, j'ai ce que je veux.

1000 Mercis !


-- 


J.-F. STRAETEN


---
Mutt 1.3.7i.
Powered by SuSE Linux 6.4


[ linux-team@rtfm.be and linux@lists.linuxbe.org in ONE :)         ]
[ To subscribe or unsubscribe, go to http://linuxbe.org/ml.php     ]
[ http://LinuxBe.org - http://OpenBe.net - listmaster@linuxbe.org  ]