Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: Ugly file name Message-ID: <11605@bloom-beacon.MIT.EDU> Date: 23 May 89 03:26:13 GMT References: <105096@sun.Eng.Sun.COM> <131@hydra.ecrcvax.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 22 In article <131@hydra.ecrcvax.UUCP> johng@hydra.UUCP (John Gregor) writes: >In article <105096@sun.Eng.Sun.COM> jackh@sun.UUCP (John Hevelin) writes: >> find . -inum 12345 -exec cat {} \; > goodfile >Am I missing something? Wouldn't > > find . -inum 12345 -exec mv {} goodfile \; > >be a bit more efficient? Most definitely.... *especially* if the file in question is a sparse file, such as the type created by dbm. The former solution will make "goodfile" actually take up as much space as the original file *said* (in a directory listing) it was taking up, even if in actuality it was taking up much less due to the way sparse files are stored. The latter solution will not have this problem. (Copy dbm files over NFS? Sure, no problem :-) Jonathan Kamens USnail: MIT Project Athena 410 Memorial Drive, No. 223F jik@Athena.MIT.EDU Cambridge, MA 02139-4318 Office: 617-253-4261 Home: 617-225-8218