[ale] man doesn't help

Wandered Inn esoteric at denali.atlnet.com
Mon Nov 30 13:56:03 EST 1998

David Hamm wrote:
> There is a command like basename.  It strips off the extension of a
> filename and prints it but I can't remember the name of the command.  I've
> checked the man page for basename and it does not mention any other command
> simular to basename.  Could someone help jog my memory?

There's a couple different ways to do it depending on the shell you're
running.  Under pdksh and bash you can do something like this:

$ foo=$(whence ksh)
$ echo $foo
$ echo ${foo##*/}

I don't know about other shells...

>  ---------------------------------
> David Hamm
> Systems Analyst
> Imaging Technologies Services Inc.
> email: dhamm at itserve.com
> voice: 404-885-5905
> ---------------------------------

Until later: Geoffrey		esoteric at denali.atlnet.com

You mean you paid MONEY for Service Pack '98????

More information about the Ale mailing list