[NMLUG] Newbie Move/Rename question
Russell D. Miller
nmlug@swcp.com
Sun, 4 Nov 2001 16:51:45 -0700 (MST)
Yep. Sorry about that. Put correctly,
for file in *.php; do mv $file ${file}3 ; done
Russ
>
> > for file in *.php; do mv $file $file3; done
>
> Just a super-picky detail, do you mean "${file}3" -- I tried something
> like "$file3" in Perl, but Perl wants to treat "file3" as the variable
> name, not as "$file" followed by "3".
>
> - Sarang
>
> > > 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
> -----------------------------------------------------
>
>
>
------------------------------------------------------
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
-----------------------------------------------------