This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: (OT) Where IS?
- From: "Andrea 'Fyre Wyzard' Bocci" <fwyzard at inwind dot it>
- To: "Augusto Flavio" <rotter at gmx dot co dot uk>, <gcc at gcc dot gnu dot org>
- Date: Fri, 22 Mar 2002 10:29:26 +0100
- Subject: Re: (OT) Where IS?
At 12:29 AM 3/22/02 -0300, Augusto Flavio wrote:
>Hello,
>
>I want know how i find a link of file and what is path of this link.
>
>Exemple:
>
>the file: "link" is a link of file x.
>I want know if the file "link" is link.
>If (yes)
> then (what is path of this file?)
>
>l--------- link -> /root/x
#! /bin/bash
[ -L "link" ] && echo "link" is a link to $(readlink "link")