[Gllug] Mass renaming of files
Paul Cupis
paul at cupis.co.uk
Thu May 8 20:29:00 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 08 May 2003 14:32, "Martin A. Brooks" <martin at clues.ltd.uk>
wrote:
> At 13:43 08/05/2003 +0100, you wrote:
> >Well, we often talk about Linux in the wider context of Unix and
> > it's always good practice to learn standard techniques. I'll take
> > the portable, properly-quoted shell example over mmv any day.
>
> And will that same one run under bash, ash, csh, zsh, esh and the
> hundred other clones? Nope, didn't think so.
>
> For "scripts", I tend to write perl rather than "shell", as the
> chances are the perl will be portable.
Well as both a Debian and a Perl user, I would hope that you would use
rename(1), as it comes installed by default and should do the requested
job very well.
$ rename 's/\://g' "*"
looks about right (pending someone picking up on a quoting problem).
I didn't particularly want to drag this thread out any longer, but the
perl script in question should be fairly portable.
Paul Cupis
- --
paul at cupis.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+ur4eIzuKV+SHX/kRAr8wAJ0bdE7HtWIJ/XP5E+JxH/QtWt9ZXgCeI735
aoq8Hvpggtt4KSfO/peIUyE=
=L6Hn
-----END PGP SIGNATURE-----
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list