Article View: ch.comp.os.linux
Article #20283Re: Symbolische Links
From: Matthias Scherrer
Date: Mon, 18 Oct 1999 00:00
Date: Mon, 18 Oct 1999 00:00
30 lines
989 bytes
989 bytes
Daniel Lutz <dlutz@ntb.ch> wrote: > Was ist der sauberste Weg, um in einem Shell-Script herauszufinden, > wohin ein Symlink zeigt? > Bsp. > a -> b-> c > A(a) = A(b) = A(c) = c > (A ist die gesuchte Operation) Wie waers mit: ############################# #!/bin/ksh # a=`readlink $1` if [ "$a" = "" ] then echo "Not linked..." else echo Linked to $a fi ############################ bye Matthias
Technical Details
Message-ID:
<htpfu7.1c.ln@amiga.pulsar>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7uep3p$rnl$1@pollux.ip-plus.net>Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit X-Google-Thread: f4b73,39c3d2d3935c6471 X-Google-Attributes: gidf4b73,public From: Matthias Scherrer <metti@datacomm.ch> Subject: Re: Symbolische Links Date: 1999/10/18 Message-ID: <htpfu7.1c.ln@amiga.pulsar> X-Deja-AN: 537614894 Sender: <metti@amiga.pulsar> References: <7uep3p$rnl$1@pollux.ip-plus.net> X-Trace: 18 Oct 1999 21:28:02 +0100, line836-basel.datacomm.ch Organization: DataComm (Schweiz) AG User-Agent: tin/pre-1.4-980618 (UNIX) (Linux/2.2.5 (i686)) Newsgroups: ch.comp.os.linux