Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
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/