Mailing List Archive

Support open source code!


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

Re: symlink destination



Something simple.

'file $symlink_name -b | cut -c 18-'

May not be the best solution though.



Thomas O'Dowd wrote:

> On Wed, Oct 25, 2000 at 02:51:55PM +0900, 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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links