Re: [SLUG] Symbolic links

2007-05-08 Thread Amos Shapira
On 08/05/07, Matthew Hannigan <[EMAIL PROTECTED]> wrote: On Mon, May 07, 2007 at 01:31:16PM +1000, Amos Shapira wrote: > > What about "find -L -samefile give-target"? > > e.g. > > $ touch target > $ ln -s target link-to-target > $ ls -l > total 0 > lrwxrwxrwx ... link-to-target -> target > -rw-r

Re: [SLUG] Symbolic links

2007-05-08 Thread Matthew Hannigan
On Mon, May 07, 2007 at 01:31:16PM +1000, Amos Shapira wrote: > > What about "find -L -samefile give-target"? > > e.g. > > $ touch target > $ ln -s target link-to-target > $ ls -l > total 0 > lrwxrwxrwx ... link-to-target -> target > -rw-r--r-- ... target > $ find -L -samefile target > ./target

Re: [SLUG] Symbolic links

2007-05-06 Thread Amos Shapira
On 07/05/07, John Ferlito <[EMAIL PROTECTED]> wrote: On Mon, May 07, 2007 at 11:15:51AM +1000, Alan L Tyree wrote: > Is there some easy way to find all the symbolic links that point to a > given target? > No real easy way since for symbolic links there is no reverse lookup table in the filesyst

Re: [SLUG] Symbolic links

2007-05-06 Thread Alan L Tyree
On Mon, 7 May 2007 11:33:52 +1000 John Ferlito <[EMAIL PROTECTED]> wrote: > On Mon, May 07, 2007 at 11:15:51AM +1000, Alan L Tyree wrote: > > Is there some easy way to find all the symbolic links that point to > > a given target? > > > > No real easy way since for symbolic links there is no reve

Re: [SLUG] Symbolic links

2007-05-06 Thread John Ferlito
On Mon, May 07, 2007 at 11:15:51AM +1000, Alan L Tyree wrote: > Is there some easy way to find all the symbolic links that point to a > given target? > No real easy way since for symbolic links there is no reverse lookup table in the filesystem. So you need to trawl the whole filesystem looking f

[SLUG] Symbolic links

2007-05-06 Thread Alan L Tyree
Hi All, Is there some easy way to find all the symbolic links that point to a given target? Thanks, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: +61 2 4782 2670Mobile: +61 427 486 206 Fax: +61 2 4782 7092FWD: 615662 -- SLUG - Sydney Linux