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 I replace the suffix jpg with txt? In this case I > want to end up with a file called test.txt. > > My initial efforts have centred around sed s/jpg/txt/ and mv but without > success. > > -- > Regards, > Phil > [EMAIL PROTECTED] > > > touch ../text/$(basename $1 .jpg).txt
bye jipe
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com