Re: aide pour une commande/script
merci a tous :) en plus d'avoir gagné du temps j'ai appris quelques trucs
:)
On Mon, 26 Jan 2009 21:47:16 +0100, Jean-Damien Durand
<Jean-Damien.Durand@cern.ch> wrote:
> On Monday 26 January 2009 21:11:47 Gilles Mocellin wrote:
>> On Mon, Jan 26, 2009 at 12:58:05PM +0100, François Cerbelle wrote:
>> > GanGan a écrit :
>> >> si je fais ca : ./*/exec/* --version il me donne que le premier
> binaire
>> >> (alphabétiquement) :(
>> >
>> > for i in ./*/exec/*; do $i --version; done
>>
>> Si la liste devient trop long pour une commande shell, il faut passer au
>> find : find ./*/exec -type f -exec {} --version \;
>
> Ou aussi:
>
> find . -mindepth 3 -maxdepth 3 -type f -regex '.*/exec/.*' -exec {}
> --version \;
>
> A+, JD.
>
>
--
- GanGan -
www.system-linux.eu
(">
/\
V_V
Reply to: