Re: [newbie] crazy zip command

2004-01-09 Thread Todd Slater
On Fri, Jan 09, 2004 at 05:07:43PM +0100, Paul wrote: > This would do it for you, I think: > > for x in *.txt > do >zip ${x%*.txt*} $x > done > > %*.txt* cuts off everything from the contents of the variable after the > text between asterisks, including that text. Wow, I didn't know you cou

Re: [newbie] crazy zip command

2004-01-09 Thread Paul
On 01/09/2004 03:02 PM, Todd Slater wrote: On Thu, Jan 08, 2004 at 06:21:40PM -0500, Rude Boy wrote: Hi Todd, I'm glad that you reply my post. Actually, I did something like this: for x in *.txt do zip $x $x.txt // Since it have the same name done This would do it for you, I think: f

Re: [newbie] crazy zip command

2004-01-08 Thread Rude Boy
Hi Todd, I'm glad that you reply my post. Actually, I did something like this: for x in *.txt do zip $x $x.txt // Since it have the same name done But I had to do lots of documentation. I use to do a little script shell at school. On Tue, 2004-01-06 at 01:22, Todd Slater wrote: >

Re: [newbie] crazy zip command

2004-01-05 Thread Todd Slater
On Mon, Jan 05, 2004 at 07:09:45PM -0500, song wrote: > Hi everybody, > I would like to make this cool command of to zip some file. Let's say I have a > folder containing a.txt, a.zip, b.txt, b.zip, etc... > I would like to add the text file to the zip file with the right name, > exemple: a.txt i

[newbie] crazy zip command

2004-01-05 Thread song
Hi everybody, I would like to make this cool command of to zip some file. Let's say I have a folder containing a.txt, a.zip, b.txt, b.zip, etc... I would like to add the text file to the zip file with the right name, exemple: a.txt in a.zip; b.txt in b.zip; c.txt in c.zip; etc... I've tried grep