[TUHS] Filename wildcarding (was: origin of the name 'glob')
Dave Horsfall
dave at horsfall.org
Tue Jul 11 07:56:31 AEST 2017
On Mon, 10 Jul 2017, Johnny Billquist wrote:
> > > I vaguely remember something like "PIP *.TXT *.OLD" to rename files
> > > (the "*" was interpreted by the command itself, not the
> > > interpreter).
>
> Well, that would not rename files, but copy them and at the same time
> changing their names. But you could also do renaming in a similar way,
> but usually it would require a switch to PIP telling it that you wanted
> the files renamed, and not copied.
[...]
Yep; I remember now... At nearly 65, my memory is getting a bit hazy :-)
And I've just remembered that there was a script "mved" written by Brian
Coogan which would rename files; its usage was "mved [-n] =.c =.c.old" to
rename *.c to *.c.old. I have it here somewhere, and could post it if
necessary.
--
Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."
More information about the TUHS
mailing list