[H-GEN] Script E-book ?

Sandra Mansell sandra at mansell.id.au
Sat Feb 21 19:43:36 EST 2009


David Duffy wrote:

> eg: From the directory "/foo/bar/" I want to just get "bar" (and add an
> extension) so I can use that in my script as a filename.
> David...
> 
How are you at regular expressions? That'd be the best way to do it IMO. 
Unfortunately I can't help because I suck at regexp but I'm sure 
somebody else could come up with one that'll work a treat ;-)

Sandra.
-- 
sandra at mansell.id.au
"I myself am made entirely of flaws,
  stitched together with good intentions."
   - Augusten Burroughs




More information about the General mailing list