scripting/regex help

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Eric \"Shubes\"
Päiväys:  
Vastaanottaja: PLUG List
Aihe: scripting/regex help
Here's a scripting problem I could use some help with.

I have a variable x=qmail-toaster-1.2.9-1.3.1.src.rpm

I want a variable y=qmail-toaster

I'm thinking that to get from x to y, I need to strip -*-*.src.rpm off
the end. How do I do that? (or is there a better way?)

--
-Eric 'shubes'
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss