Re: imagemagick

Liste des GroupesRevenir à fco unix 
Sujet : Re: imagemagick
De : fantome.forums.tDeContes (at) *nospam* free.fr.invalid (Thomas)
Groupes : fr.comp.os.unix
Date : 21. Oct 2021, 22:13:05
Autres entêtes
Organisation : Guest of ProXad - France
Message-ID : <fantome.forums.tDeContes-C72036.22130521102021@news.free.fr>
References : 1 2 3 4 5
User-Agent : MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
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/

Date Sujet#  Auteur
18 Oct 21 * imagemagick26Thomas
18 Oct 21 +* Re: imagemagick24pehache
19 Oct 21 i`* Re: imagemagick23Thomas
19 Oct 21 i +* Re: imagemagick11Nicolas George
19 Oct 21 i i+- Re: imagemagick1Olivier Miakinen
20 Oct 21 i i`* Re: imagemagick9Thomas
20 Oct 21 i i `* Re: imagemagick8pehache
21 Oct 21 i i  `* Re: imagemagick7Thomas
22 Oct 21 i i   `* Re: imagemagick6pehache
30 Nov 21 i i    `* Re: imagemagick5Thomas
30 Nov 21 i i     `* Re: imagemagick4pehache
1 Dec 21 i i      `* Re: imagemagick3Thomas
19 Dec 21 i i       `* Re: imagemagick2Thomas
2 Jan 22 i i        `- Re: imagemagick1pehache
20 Oct 21 i `* Re: imagemagick11Thomas
20 Oct 21 i  +* Re: imagemagick4pehache
20 Oct 21 i  i`* Re: imagemagick3pehache
20 Oct 21 i  i `* Re: imagemagick2Benoit Izac
20 Oct 21 i  i  `- Re: imagemagick1pehache
20 Oct 21 i  `* Re: imagemagick6Benoit Izac
21 Oct 21 i   `* Re: imagemagick5Thomas
22 Oct 21 i    +* Re: imagemagick2Benoit Izac
30 Nov 21 i    i`- Re: imagemagick1Thomas
22 Oct 21 i    `* Re: imagemagick2Alain Ketterlin
30 Nov 21 i     `- Re: imagemagick1Thomas
19 Oct 21 `- Re: imagemagick1Nicolas George

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal