--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
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 with a file named
include.inc
z=`echo $i | sed -e "s/inc$/ht
--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 b
> 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 i
--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
> > 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 swe
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 fi
> >
> > 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 swe
--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 t