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 could do that; much more efficient than calling sed! Thanks for the knowledge. Todd
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
