Re: find/replace text

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: 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