Hi!

In, DOS, everyone knows that typing:

copy *.txt *.doc

Will make a copy of all .txt files but with a new extension, .doc

Typing:

copy secret*.txt lies*.txt

Will make a copy of all .txt files starting with "secret" but with the name
"lies" instead of "secret".

etc, etc, etc.

The question is: How do you do this under Linux/bash?

I understand that things like "cp secret*.txt lies*.txt" will not do it
because of the way bash expands
wildcard specifications (and can even have undesirable results if you have a
folder matching the
pattern lies*.txt, but that's another story :)).

If DOS can do, I'm sure Linux can too!
Does anyone know how to do this?

Thanks,
George



Reply via email to