[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] Changer les extensions...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
cd /mon/rep/a/la/con/plein/php
for i in *.php ; do
base=`basename $i .php`
mv $i $base.php4
done
dans ton cas encore plus simple:
cd /mon/rep/a/la/con/plein/php
for i in *.php ; do
mv $i ${i}4
done
Le Lundi 29 Avril 2002 17:10, ::: CORNELY Nicolas ::: a écrit :
> Quelqu'un connaît-il une commande permettant de changer les extensions
> d'un grand nombre de fichier contenu dans un répertoire.
>
> Ex.: 200 fichiers *.php à convertir en *.php4 dans le répertoire /x.
- --
Linux pour Mac !? Enfin le moyen de transformer
une pomme en véritable ordinateur. - JL.
Olivier Thauvin - http://nanardon.homelinux.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzNZWEACgkQk29cDOWzfVC5TwCg1PwsuX1pC/qDYvakoCewh9ps
sbQAoLa/Cn+rPxAkqDNlx8xT3OkN5bpR
=T0om
-----END PGP SIGNATURE-----
_______________________________________________
Linux Mailing List
LCP - 11 Mai - http://www.unixtech.be/lcp.php
Archives: http://www.unixtech.be/mailman/listinfo/linux