Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-lcc!mordor!styx!twg-ap!amdahl!nsc!nsta!instable!amos
From: amos@instable.UUCP (Amos Shapir)
Newsgroups: net.sources
Subject: Re: lln - a routine to list all links to a file
Message-ID: <659@instable.UUCP>
Date: Thu, 1-Jan-87 04:28:55 EST
Article-I.D.: instable.659
Posted: Thu Jan  1 04:28:55 1987
Date-Received: Thu, 1-Jan-87 21:57:05 EST
References: <263@bsdpkh.UUCP>
Reply-To: amos%nsta@nsc.com (Amos Shapir)
Organization: National Semiconductor (Israel) Ltd.
Lines: 15

What's wrong with:

set `ls -id file`
find / -inum $1 -print

It's much more portable than the given program, can limit the search
to any dir instead of /, and is probably faster on most machines.
The moral is: before writing your own utilities (or hacking the kernel
as some budding gurus do), re-read the manual - you'll be surprised how
many new and useful flags are in utilities you have been using daily!
-- 
	Amos Shapir
National Semiconductor (Israel)
6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel
(011-972) 52-522261  amos%nsta@nsc 34.48'E 32.10'N