From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4b8f47b6d4f87a21 X-Google-Attributes: gidfee84,public From: stern@phys.cwru.edu (Michael Sternberg) Subject: Re: Deleting files with odd names Date: 1995/10/11 Message-ID: <45fgdk$lc3@madeline.INS.CWRU.Edu>#1/1 X-Deja-AN: 117379390 references: <44rk7q$bg2@lyra.csx.cam.ac.uk> organization: A poorly-installed InterNetNews site reply-to: stern@els3.phys.cwru.edu newsgroups: comp.unix.osf.osf1 gurman@uvsp.gsfc.nasa.gov (Joseph B. Gurman) writes: >In Dave Hodgson wrote: >> I have a bunch of files in a directory which were tranferred from a >> Macintosh. >> >> Somehow the files whose names contained slashes '/' transferred OK and they >> appear, when using `ls`, as having a name with a slash in THE classical mischief when Macs are allowed to talk to Unices with a gullible NFS interface. >> But no matter how I try I can't delete that damn things, even when I try >> `rm -rf` on the directory above... > I guess people just aren't being brainwashed with first-grade Bourne >any more (and probably a good thing). This surely would be a great idea. If only it were thorough enough . >% rm name\/with\/slash\/in\/it As far as the 'rm' is concerned, this is a nop. The backslashes protect special characters from the _shell_. Now, '/' is not so much special, so that it doesn't even need to be protected. So, as the shell is concerned, it is a nop, too. Dave, Get the Mac-user to delete the d*mn thing. If this is not an option, note that the file name only appears in its directory "." . IF you can edit this dirfile on a low level, just change the "/" to something useful. For such rare cases I use "fm". You might need to do this on the raw device. Needless to say - be _very_ cautious. umount, edit, then fsck, mount, rm -f -- done Check for an NFS-patch for your system. Greetings, -- Michael Sternberg, Physics Research Scholar mgs@po.cwru.edu Case Western Reserve University Lab phone: (216) 368 4034 "Who disturrrbs me at this time?" << Zaphod Beeblebrox IV >>