X-Received: by 2002:a05:6214:a10:: with SMTP id dw16mr15703326qvb.57.1634368325636; Sat, 16 Oct 2021 00:12:05 -0700 (PDT) X-Received: by 2002:a05:622a:1305:: with SMTP id v5mr18162912qtk.62.1634368325303; Sat, 16 Oct 2021 00:12:05 -0700 (PDT) Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: fr.comp.os.linux.configuration Date: Sat, 16 Oct 2021 00:12:05 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb1c:f17:900:af80:1f8c:32c3:1070; posting-account=q7TWSwoAAACOGlDiqgPG6hvLEUJmQy4p NNTP-Posting-Host: 2a01:cb1c:f17:900:af80:1f8c:32c3:1070 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <74ff96e1-fdc5-4d1f-a23a-815dac213834n@googlegroups.com> Subject: Script toujours ? From: ptilou Injection-Date: Sat, 16 Oct 2021 07:12:05 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Bytes: 1872 Lines: 24 Slt, [philippe@fedora image-reconstruction]$ ./boucle-mv ../boucle-mv: ligne 2: erreur de syntaxe pr=C3=A8s du symbole inattendu =C2= =AB f =C2=BB ../boucle-mv: ligne 2: ` for d in *gray ; f in *.jpg-gray.jpg /' [philippe@fedora image-reconstruction]$=20 J'ai ecrit ca : #!/bin/bash for d in *gray ; f in *.jpg-gray.jpg / do mv "$f" "$d"gray/$f done d=3D directory f=3Dfile d'apres une documentation, j'ai essay=C3=A9 de remplacer le point virgule p= ar &, et des formes de parentaises en veux tu en voila, mais il ne d=C3=A9p= lace pas les fichierS ? La question est comment faire pour qu'il deplace les fichiers ? Merci --=20 ptilou