help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Determing intermediate symlinked name in a Bash script


From: Nate Bargmann
Subject: Re: Determing intermediate symlinked name in a Bash script
Date: Mon, 22 Nov 2004 15:30:41 -0600
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))

On Mon, 22 Nov 2004 11:29:08 -0500, Paul Jarc wrote:

> Nate Bargmann <n0nb@networksplus.net> wrote:
>> I want to figure out from inside the script 'junk' whether 'redirect'
>> points to 'foo' or 'bar' so 'junk' can take appropriate action.
> 
> If your system has the readlink command: readlink "$0"

Thanks, Paul.

readlink is exactly what I was looking for.  That's the problem with UNIX
like systems--they're such a vast resource that I get lost at times.  :-)

- Nate >>

-- 

"The optimist proclaims that we live in the best of all possible worlds,
the pessimist fears this is true."



reply via email to

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