Mailing List Archive

Support open source code!


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

Re: symlink destination



a bit of an overkill, but you could use

find <the file you want> -printf "%l"

or if you want to find files which are symbolic links 

find <where you want to look> -type l -printf "%l"

hope they are of some use

cheers

tony





Viktor Pavlenko wrote:
> 
> A shell programming question:
> 
> Is there a way to find out the destination of a symbolic link (the
> file it links to) from a sh script? Parsing the output of `ls -l' is a
> possibility but it doesn't feel right.
> 
> Thanks.
> 
> Viktor
> 
> -----------------------------------------------------------------------
> Next Technical Meeting: November 11 (Sat) 13:30  Place: LinuxProbe Hall
> Next Nomikai (and Bonenkai!): December 15 (Fri)
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links