[NMLUG] Newbie Move/Rename question

Kyle nmlug@swcp.com
Sat, 3 Nov 2001 20:00:12 -0700


  Ah, for....now I get it.

-----Original Message-----
From: owner-nmlug@swcp.com [mailto:owner-nmlug@swcp.com]On Behalf Of
Russell D. Miller
Sent: Saturday, November 03, 2001 7:40 PM
To: nmlug@swcp.com
Subject: Re: [NMLUG] Newbie Move/Rename question


[De-lurk]

in Bash,

for file in *.php; do mv $file $file3; done

for more safety, 

for file in *.php; do cp $file $file3; done
ls -al *.php3
If all OK, 
rm *.php

[Resume lurk mode]

Russ
> 
> 
>   Ok, hopefully a simple question.
> 
>   I have a ton of .php files that I need to rename in mass to .php3....
> 
>   I can do them 1 by 1 with the "mv" command but there must be an easier
> way.
> 
>   Thanks!
> 
> ------------------------------------------------------
> To UNSUBSCRIBE send a message to nmlug-request@swcp.com
> with only the word unsubscribe in the body.  More
> information can be found at www.nmlug.org/info.html
> -----------------------------------------------------
> 
> 
> 

------------------------------------------------------
To UNSUBSCRIBE send a message to nmlug-request@swcp.com
with only the word unsubscribe in the body.  More
information can be found at www.nmlug.org/info.html
-----------------------------------------------------


------------------------------------------------------
To UNSUBSCRIBE send a message to nmlug-request@swcp.com
with only the word unsubscribe in the body.  More
information can be found at www.nmlug.org/info.html
-----------------------------------------------------