Path: utzoo!utgpu!watserv1!watmath!att!emory!ogicse!littlei!gandalf!andyc From: andyc@bucky.intel.com (Andy Crump) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: Date: 29 Nov 90 10:59:30 GMT References: <4899@trantor.harris-atd.com> <4900@trantor.harris-atd.com> <1990Nov26.082214.17329@oracle.com> <1990Nov26.150716.7268@specialix.co.uk> Sender: news@littlei.UUCP Organization: Intel Corporation, Hillsboro, Oregon Lines: 23 In-reply-to: jonb@specialix.co.uk's message of 26 Nov 90 15:07:16 GMT >>>>> On 26 Nov 90 15:07:16 GMT, jonb@specialix.co.uk (Jon Brawn) said: Jon> OK, so thats found all the real links. Reading the subject line, how Jon> do you find all the *symbolic* links? How do I access a symbolic link Jon> file to find out that it IS a symbolic link (I mean from within C, I Jon> assume stat( char *filename ) is going to stat the pointed too file?) Jon> Does 'find' have a wonderful flag for finding symlinks? Jon> Do any of ncheck/icheck/dcheck/fsck/fsdb/anything understand them? In SVR4, find as the option parameter of 'l' to -type. Thus find -type l -print, will print all files that are a symbolic link. Tho this doesn't tell you where they point. -- -- Andy Crump ...!tektronix!reed!littlei!andyc | andyc@littlei.intel.com ...!uunet!littlei!andyc | andyc@littlei.uu.net Disclaimer: Any opinions expressed here are my own and not representive of Intel Corportation.