Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: stern@phys.cwru.edu (Michael Sternberg)
Subject: Re: Deleting files with odd names
Date: 1995/10/11	[thread overview]
Message-ID: <45fgdk$lc3@madeline.INS.CWRU.Edu> (raw)
In-Reply-To: gurman-0510952225230001@goodgulf.gsfc.nasa.gov

gurman@uvsp.gsfc.nasa.gov (Joseph B. Gurman) writes:
>In Dave Hodgson <dmh@sanger.ac.uk> 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 <evil
grin>.

>% 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 >>



  reply	other threads:[~1995-10-11  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-03  4:00 Deleting files with odd names Dave Hodgson
1995-10-05  4:00 ` Joseph B. Gurman
1995-10-11  4:00   ` Michael Sternberg [this message]
1995-10-05  4:00 ` John van der Voort van der Kleij
1995-10-06  4:00 ` Dave Hodgson
1995-10-07  4:00 ` Thomas Leitner
1995-10-11  4:00 ` Daniel S. Riley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox