Path: ...!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp1-1.free.fr!not-for-mail From: Thomas Newsgroups: fr.comp.os.unix Mail-Copies-To: nobody Subject: Re: bash : fonction min References: <87k0ia5fn8.fsf@universite-de-strasbourg.fr.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Date: Tue, 19 Oct 2021 18:52:13 +0200 Message-ID: Lines: 20 Organization: Guest of ProXad - France NNTP-Posting-Date: 19 Oct 2021 18:52:13 CEST NNTP-Posting-Host: 91.175.52.121 X-Trace: 1634662333 news-4.free.fr 8918 91.175.52.121:7975 X-Complaints-To: abuse@proxad.net Bytes: 1600 In article <87k0ia5fn8.fsf@universite-de-strasbourg.fr.invalid>, Alain Ketterlin wrote: > Thomas writes: > > > existe-t-il une fonction min dans bash ? > > j'imagine ça disponible parmi les opérations mathématiques auxquelles on > > accède via $(( )) > > $(( X < Y ? X : Y )) merci bcp, ça marche parfaitement bien :-) et merci à vous 2 pour les précisions qui peuvent servir plus tard ou à d'autres ! -- RAPID maintainer http://savannah.nongnu.org/projects/rapid/