Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!sdcsvax!ucsdhub!esosun!seismo!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: Accessing files by inode #s Keywords: inode find Message-ID: <9356@steinmetz.steinmetz.UUCP> Date: 28 Jan 88 18:19:20 GMT References: <831@dolqci.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 18 In article <831@dolqci.UUCP> stein@dolqci.UUCP (Mike Stein) writes: on accessing file by inode... | Yes! You can do anything you want via | | find -inum -exec \; | | In the you refer to the file as '{}'. Thus, if you have a | file in the current directory with an insane name (but you know its | inode number is '1234') and you want to rename it 'foo', you would type: | | find . -inum 1234 -exec mv {} foo \; You would be well advised to use "{}" for the filename, too. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me