Re: How do I change the extensions on a slew of files

2003-09-12 Thread Larry Rosenman
--On Friday, September 12, 2003 17:11:50 -0700 James Long [EMAIL PROTECTED] wrote: On Wed, Sep 03, 2003 at 08:28:19PM -0500, Larry Rosenman wrote: from an sh type shell for i in *.inc do z=`echo $i | sed -e s/inc/htm/g` mv ${i} ${z} done (not tested, but should work.) LER What does it do

Re: How do I change the extensions on a slew of files

2003-09-03 Thread Larry Rosenman
--On Wednesday, September 03, 2003 18:25:07 -0700 Jonas [EMAIL PROTECTED] wrote: Hello Know-It-Alls, If I have a directory with a whole slew of files with the same file extension, for example: 1-1-1.inc 1-1-2.inc 1-1-3.inc etc. What command can I use to change the file extension - but keep

RE: How do I change the extensions on a slew of files

2003-09-03 Thread Jonas
Hello Know-It-Alls, If I have a directory with a whole slew of files with the same file extension, for example: 1-1-1.inc 1-1-2.inc 1-1-3.inc etc. What command can I use to change the file extension - but keep the file name the same - in one swell swoop? The equivalent

Re: How do I change the extensions on a slew of files

2003-09-03 Thread Till Plewe
On Wed, Sep 03, 2003 at 06:25:07PM -0700, Jonas wrote: Hello Know-It-Alls, If I have a directory with a whole slew of files with the same file extension, for example: 1-1-1.inc 1-1-2.inc 1-1-3.inc etc. What command can I use to change the file extension - but keep the file name

RE: How do I change the extensions on a slew of files

2003-09-03 Thread Charles Howse
Hello Know-It-Alls, If I have a directory with a whole slew of files with the same file extension, for example: 1-1-1.inc 1-1-2.inc 1-1-3.inc etc. What command can I use to change the file extension - but keep the file name the same - in one swell swoop? The equivalent

RE: How do I change the extensions on a slew of files

2003-09-03 Thread Larry Rosenman
--On Wednesday, September 03, 2003 18:56:15 -0700 Jonas [EMAIL PROTECTED] wrote: Tested and it works great! Cool. That was off the top of my head using standard system tools. Enjoy. Welcome to FreeBSD and Unix and Unix-Like OS'. Larry Thanks. My pleasure. -- Larry Rosenman

Re: How do I change the extensions on a slew of files

2003-09-03 Thread Mike Hogsett
from an sh type shell for i in *.inc do z=`echo $i | sed -e s/inc/htm/g` mv ${i} ${z} done This won't give expected results for a file named fooinc.inc. It will become foohtm.htm. I realize that based on the file names given in the original email this doesn't appear to be an issue, but

Re: How do I change the extensions on a slew of files

2003-09-03 Thread Larry Rosenman
--On Wednesday, September 03, 2003 19:38:20 -0700 Mike Hogsett [EMAIL PROTECTED] wrote: from an sh type shell for i in *.inc do z=`echo $i | sed -e s/inc/htm/g` mv ${i} ${z} done This won't give expected results for a file named fooinc.inc. It will become foohtm.htm. I realize that based on