Re: string manipulation in a shell script

2004-07-17 Thread Kathy Quinlan
Matthew Seaman wrote: On Sat, Jul 17, 2004 at 04:33:27PM +0800, Kathy Quinlan wrote: Hi guys and Gals, I have a simple script: #!/bin/sh a=ia$(date +%d%m%Y) tar -cf "$a.zip" "/usr/home/projects/lunaria/items all" mv $a.zip /usr/home/itemsall/ this nearly does what I want, I would like to put the ti

Re: string manipulation in a shell script

2004-07-17 Thread Henrik W Lund
Kathy Quinlan wrote: Hi guys and Gals, I have a simple script: #!/bin/sh a=ia$(date +%d%m%Y) tar -cf "$a.zip" "/usr/home/projects/lunaria/items all" mv $a.zip /usr/home/itemsall/ this nearly does what I want, I would like to put the time in the file name aswell. If I put the %T in the date variabl

Re: string manipulation in a shell script

2004-07-17 Thread Matthew Seaman
On Sat, Jul 17, 2004 at 04:33:27PM +0800, Kathy Quinlan wrote: > Hi guys and Gals, > > I have a simple script: > > #!/bin/sh > > a=ia$(date +%d%m%Y) > > tar -cf "$a.zip" "/usr/home/projects/lunaria/items all" > mv $a.zip /usr/home/itemsall/ > > this nearly does what I want, I would like to put

string manipulation in a shell script

2004-07-17 Thread Kathy Quinlan
Hi guys and Gals, I have a simple script: #!/bin/sh a=ia$(date +%d%m%Y) tar -cf "$a.zip" "/usr/home/projects/lunaria/items all" mv $a.zip /usr/home/itemsall/ this nearly does what I want, I would like to put the time in the file name aswell. If I put the %T in the date variable, the resultant valu