MLUG: RE: [MLUG] minor annoyance with '..' files
RE: [MLUG] minor annoyance with '..' files
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Slightly off Mike's topic but...

My problem was somebody FTP'ed "backup" files from our Winblow server that
had a file extension of ".$$$" ... try to remove those simply... I couldn't
get them without getting the current original file they were backing up...

-----Original Message-----
From: Stephen Montgomery-Smith [mailto:EMAIL:PROTECTED]
Sent: Tuesday, May 01, 2001 16:01
To: EMAIL:PROTECTED
Subject: Re: [MLUG] minor annoyance with '..' files


It depends upon what letter follows.  I have always done something like

ls ..[a-z]* ..[A-Z]*

but that depends upon the 3rd character being a letter.

Mike Miller wrote:
> 
> I have some files that begin with '..' (don't ask, I have no idea).
> Anyway, it seems very difficult to produce a directory listing of just
> those files.  These approaches always show the those files, but they also
> show files in the parent directory:
> 
> ls ..*
> ls ./..*
> ls $PWD/..*
> 
> It looks like it could be very dangerous to attempt to delete them using a
> wildcard!
> 
> Is there a way to limit output of ls (or rm) to files within the
> directory?  Some other trick?
> 
> Mike
> 
> --
> To manage your subscription, go to
http://mlug.missouri.edu/members/edit.php
> 
> Archives are available at http://mlug.missouri.edu/list-archives/

-- 

Stephen Montgomery-Smith              EMAIL:PROTECTED
307 Math Science Building             EMAIL:PROTECTED
Department of Mathematics             EMAIL:PROTECTED
University of Missouri-Columbia
Columbia, MO 65211
USA

Phone (573) 882 4540
Fax   (573) 882 1869

http://www.math.missouri.edu/~stephen
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/