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
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
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:
>
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
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