Re: NEWBIE: Is there an easy way to rename files

2002-09-06 Thread Kevin Myers
On Thu, 5 Sep 2002 08:12:24 -0400, Kevin wrote: But obviously not the best or easiest way. How is it I've used *nix for all these years and never heard of this command? Don't know, maybe because everyone uses mv to rename? But this sure looks easier than a for loop: RENAME(1) Linux

Re: NEWBIE: Is there an easy way to rename files

2002-09-06 Thread Emmanuel Seyman
On Thu, Sep 05, 2002 at 08:12:24AM -0400, Kevin MacNeil wrote: But obviously not the best or easiest way. How is it I've used *nix for all these years and never heard of this command? I've wondered the same thing on a few occasions. Maybe it's because mv is easier to use if you're only

Re: NEWBIE: Is there an easy way to rename files

2002-09-06 Thread Robert P. J. Day
On Fri, 6 Sep 2002, Emmanuel Seyman wrote: On Thu, Sep 05, 2002 at 08:12:24AM -0400, Kevin MacNeil wrote: But obviously not the best or easiest way. How is it I've used *nix for all these years and never heard of this command? I've wondered the same thing on a few occasions. Maybe

Re: NEWBIE: Is there an easy way to rename files

2002-09-06 Thread Emmanuel Seyman
On Fri, Sep 06, 2002 at 08:53:00AM -0400, Robert P. J. Day wrote: sometime after that is when it seems to have appeared as a regular command. i could be wrong, feel free to correct me. I first discovered rename when I was using Zoot (RHL 6.2) which was released 2.5 years ago. The file

Re: NEWBIE: Is there an easy way to rename files

2002-09-06 Thread cana rich
Try : mv old_file new_name or cp old_file new_file Emmanuel Seyman [EMAIL PROTECTED] a écrit: On Fri, Sep 06, 2002 at 08:53:00AM -0400, Robert P. J. Day wrote: sometime after that is when it seems to have appeared as a regular command. i could be wrong, feel free to correct me.I first

Re: NEWBIE: Is there an easy way to rename files

2002-09-05 Thread Kevin MacNeil
On Wed, Sep 04, 2002 at 04:17:36PM -0400, Brian Ashe wrote: Wednesday, September 4, 2002, 3:59:19 PM, you textually orated: BL I am trying to rename a bunch of files with extension .inc to .php BL in one fell-swoop. Is there a set of commands I can pipe to each BL other to do this like:

NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Brian Lucas
Title: Message I am trying to rename a bunch of files with extension .inc to .php in one fell-swoop. Is there a set of commands I can pipe to each other to do this like: ls *.inc | xargs or do I need to do a for loop. I read up a little on xargs and on using the ` operator for

RE: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Bob Buckley
LucasSent: Wednesday, September 04, 2002 2:59 PMTo: '[EMAIL PROTECTED]'Subject: NEWBIE: Is there an easy way to rename files I am trying to rename a bunch of files with extension .inc to .php in one fell-swoop. Is there a set of commands I can pipe to each other to do this like

Re: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Brian Ashe
Hello Brian, Wednesday, September 4, 2002, 3:59:19 PM, you textually orated: BL I am trying to rename a bunch of files with extension .inc to .php in one BL fell-swoop. Is there a set of commands I can pipe to each other to do this BL like: BL ls *.inc | xargs BL or do I need to do a

Re: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Bill Rugolsky Jr.
On Wed, Sep 04, 2002 at 12:59:19PM -0700, Brian Lucas wrote: I am trying to rename a bunch of files with extension .inc to .php in one fell-swoop. Is there a set of commands I can pipe to each other to do this like: ls *.inc | xargs or do I need to do a for loop. rename .inc

RE: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Brian Lucas
PROTECTED]] Sent: Wednesday, September 04, 2002 2:12 PMTo: [EMAIL PROTECTED]Subject: RE: NEWBIE: Is there an easy way to rename files try this mv *.inc *.php. You should always backup or make a copy of the entire directory in which you are operating. With great

RE: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Brian Lucas
Oh the curse of the obvious! -Original Message- From: Bill Rugolsky Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 2:16 PM To: [EMAIL PROTECTED] Subject: Re: NEWBIE: Is there an easy way to rename files On Wed, Sep 04, 2002 at 12:59:19PM -0700, Brian Lucas wrote

RE: NEWBIE: Is there an easy way to rename files

2002-09-04 Thread Robert P. J. Day
On Wed, 4 Sep 2002, Bob Buckley wrote: Messagetry this mv *.inc *.php. assuming that you'd like to rename each .inc file to the corresponding .php name, there's a handy utility called basename, which takes an optional third argument as the suffix to strip from a filename. so, change to the