Re: Change file extension using bash (OT)

2002-02-12 Thread Cameron Simpson
On 14:13 12 Feb 2002, Wojtek Pilorz <[EMAIL PROTECTED]> wrote: | > | If we want bash-only solution we can use a bit faster (no subprocessed | > | created): | > | for f in *.pc; do newname="${f%.pc}".jpg; mv -i "$f" "$newname"; done | > | > True, and will fail badly on a system without bash. (And

Re: Change file extension using bash (OT)

2002-02-12 Thread Wojtek Pilorz
On Tue, 12 Feb 2002, Cameron Simpson wrote: > On 08:38 12 Feb 2002, Wojtek Pilorz <[EMAIL PROTECTED]> wrote: > | On Tue, 12 Feb 2002, Cameron Simpson wrote: [...] > | > for f in *.pc > | > do newname=`basename "$f" .bc`.jpg > | > mv -i "$f" "$newname" > | > done > | It seems that you try to

Re: Change file extension using bash (OT)

2002-02-12 Thread Pete Peterson
> Message: 13 > From: "Reuben D Budiardja" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Change file extension using bash (OT) > Date: Mon, 11 Feb 2002 23:39:10 -0500 > Reply-To: [EMAIL PROTECTED] > > > Hi, > I need a bit of help with

Re: Change file extension using bash (OT)

2002-02-12 Thread Cameron Simpson
On 08:38 12 Feb 2002, Wojtek Pilorz <[EMAIL PROTECTED]> wrote: | On Tue, 12 Feb 2002, Cameron Simpson wrote: | > On 23:39 11 Feb 2002, Reuben D Budiardja <[EMAIL PROTECTED]> wrote: | > | I need a bit of help with bash here. I try to create a script that would | > | change the extension of files i

Re: Change file extension using bash (OT)

2002-02-12 Thread Emmanuel Seyman
On Mon, Feb 11, 2002 at 11:39:10PM -0500, Reuben D Budiardja wrote: > > I need a bit of help with bash here. I try to create a script that would > change the extension of files in directory. I have files like > xxx.pc that I want a change to xxx.jpg, where xxx is numbers, in a directory. > How

Re: Change file extension using bash (OT)

2002-02-11 Thread Wojtek Pilorz
On Tue, 12 Feb 2002, Cameron Simpson wrote: > Date: Tue, 12 Feb 2002 15:51:10 +1100 > From: Cameron Simpson <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: Change file extension using bash (OT) > > On 23:39 11 Feb 2002,

Re: Change file extension using bash (OT)

2002-02-11 Thread Cameron Simpson
On 23:39 11 Feb 2002, Reuben D Budiardja <[EMAIL PROTECTED]> wrote: | I need a bit of help with bash here. I try to create a script that would | change the extension of files in directory. I have files like | xxx.pc that I want a change to xxx.jpg, where xxx is numbers, in a directory. | How ca

Change file extension using bash (OT)

2002-02-11 Thread Reuben D Budiardja
Hi, I need a bit of help with bash here. I try to create a script that would change the extension of files in directory. I have files like xxx.pc that I want a change to xxx.jpg, where xxx is numbers, in a directory. How can I do that using bash? thanks for any help. Reuben D.B. __