View Single Post
Old 12-09-2003, 10:32 PM  
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
Question for Unix Gurus

I'm sure there is a way to do this with a *nix command but I'm at a complete loss...


I have a group of data...like the following


domain.com/subdir/yadayada.php?sqiggly,;lkjsdf;lkajsdf
domain.com/subdir/stuff.php
domain.com/lalbasdf.php12341234

etc


is there a way to chop off the trailing items just leaving

the

domain.com/subdirs

and

domain.com



?



thanks in advance...
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote