bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the basenale of a file


From: Paul Jarc
Subject: Re: the basenale of a file
Date: Tue, 08 Jan 2002 14:25:41 -0500
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-redhat-linux-gnu)

"David D" <address@hidden> wrote:
> I m sorry i m so idiot.
> I try to retrieve the basename of a file without the ./ which mwas return me
> froma find command
> I try a test :
>
> set a = "./mail"
> set a =basename $a
> echo `$a`

You aren't speaking sh (nor bash).  The "set" command has nothing to
do with what you want; whitespace around "=" matters; you seem to have
your backquotes in the wrong place.
a="./mail"
a="`basename "$a"`"
echo "$a"

> nothing I try without '', $a mean the value into a ?

I don't understand this question.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]