Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.os.unix > #7847

Re: imagemagick

From Thomas <fantome.forums.tDeContes@free.fr.invalid>
Newsgroups fr.comp.os.unix
Subject Re: imagemagick
References <fantome.forums.tDeContes-4DA7F8.22020718102021@news.free.fr> <it63ieFhgt4U1@mid.individual.net> <fantome.forums.tDeContes-339A40.00125719102021@news.free.fr> <fantome.forums.tDeContes-F7FF88.02144620102021@news.free.fr> <87bl3k8cte.fsf@izac.org>
Date 2021-10-21 22:13 +0200
Message-ID <fantome.forums.tDeContes-C72036.22130521102021@news.free.fr> (permalink)
Organization Guest of ProXad - France

Show all headers | View raw


In article <87bl3k8cte.fsf@izac.org>,
 Benoit Izac <use.reply.to@INVALID.ADDRESS> wrote:

> Bonjour,
> 
> Le 20/10/2021 à 02:14, Thomas a écrit dans le message
> <fantome.forums.tDeContes-F7FF88.02144620102021@news.free.fr> :
> 
> > le basename de toutes mes images se termine par "_gif",
> > puis-je en profiter pour supprimer cette "extension" qui me semble
> > inutile, avec une formule pas trop compliquée en bash ?
> 
> for file in *.xpm; do convert "$file" "${file%_gif}.png"; done

merci :-)

sinon,
$ for file in *.gif ; do convert "$file" "$(basename "$file" 
_gif.gif).png" ; done
fonctionne très bien aussi :-)

si j'ai bien, compris, les quotes n'ont pas besoin d'échappement grâce à 
l'usage de $() au lieu de `` ?

-- 
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/

Back to fr.comp.os.unix | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-18 22:02 +0200
  Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-18 22:25 +0200
    Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-19 00:12 +0200
      Re: imagemagick Nicolas George <nicolas$george@salle-s.org> - 2021-10-19 10:16 +0000
        Re: imagemagick Olivier Miakinen <om+news@miakinen.net> - 2021-10-19 14:08 +0200
        Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-20 03:12 +0200
          Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:50 +0200
            Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-21 22:39 +0200
              Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-22 16:43 +0000
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 03:08 +0100
                Re: imagemagick pehache <pehache.7@gmail.com> - 2021-11-30 22:27 +0100
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-12-01 02:25 +0100
                Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-12-19 15:44 +0100
                Re: imagemagick pehache <pehache.7@gmail.com> - 2022-01-02 13:54 +0100
      Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-20 02:14 +0200
        Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:44 +0200
          Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 07:54 +0200
            Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-20 09:20 +0200
              Re: imagemagick pehache <pehache.7@gmail.com> - 2021-10-20 15:24 +0000
        Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-20 07:50 +0200
          Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-10-21 22:13 +0200
            Re: imagemagick Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-10-22 07:56 +0200
              Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 01:34 +0100
            Re: imagemagick Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2021-10-22 10:05 +0200
              Re: imagemagick Thomas <fantome.forums.tDeContes@free.fr.invalid> - 2021-11-30 01:32 +0100
  Re: imagemagick Nicolas George <nicolas$george@salle-s.org> - 2021-10-19 10:14 +0000
  Re: imagemagick khtmhai5 <nospam_khtmhai5@gmail.com.invalid> - 2022-06-21 05:21 -0500

csiph-web