[expert] Need a script to rename a file

2002-09-02 Thread Phil
Hello all, My shell script takes a jpeg file as the input like this: myscript test.jpg. After some processing I then create an empty file in a subdirectory named text like this: touch ../text/$1. The question is, how do I replace the suffix jpg with txt? In this case I want to end up with a

Re: [expert] Need a script to rename a file

2002-09-02 Thread Martin Fahrendorf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Sonntag, 1. September 2002 10:16 schrieb Phil: Hello all, My shell script takes a jpeg file as the input like this: myscript test.jpg. After some processing I then create an empty file in a subdirectory named text like this: touch

Re: [expert] Need a script to rename a file

2002-09-02 Thread jipe
On Sun, 1 Sep 2002 09:16:01 +0100 Phil [EMAIL PROTECTED] wrote: Hello all, My shell script takes a jpeg file as the input like this: myscript test.jpg. After some processing I then create an empty file in a subdirectory named text like this: touch ../text/$1. The question is, how do