[H-GEN] Script E-book ?

Greg Black gjb at yaxom.com
Sat Feb 21 19:42:39 EST 2009


On 2009-02-22, David Duffy wrote:

> I've searched online and have found enough examples and docs to get me
> started (loops, if then, echo, exit, etc) but can't figure out how to
> split a directory name into it's parts.
> 
> 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.

Look at basename and dirname.

Greg




More information about the General mailing list