Re: find/replace text

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: plug-discuss
Tárgy: Re: find/replace text
> Wounldn't
>
> mv *.html *.php
>
> work?


No. That would rename all the files to one single file name or would error
out.

Imagine if those wildcards expanded to:

mv 1.html 2.html 3.html 4.html testing.php

Then you would end up with one file. testing.php would be overwritten and
you would lose three of the other files.

Or if you didn't have a *.php -- depending on the shell -- it would either
error out (and not rename at all) or it would create a file called *.php
(with a literal asterisk).


Jeremy C. Reed

                 open source, Unix, *BSD, Linux training
                http://www.pugetsoundtechnology.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss