Re: filenames beginning with "-"
On Sun, Oct 10, 1999 at 10:50:56PM +0300, Heikki Vatiainen wrote:
> Rob Mahurin <robm@mad.scientist.com> wrote:
> > Apparently about an hour ago something made a few files in my homedir
> > that began with "-", and now I can't read them and can't remove them:
> >
> > 15:30 ~ $ ls
> > total 80
> > -rw------- 1 alphengl alphengl 226 Oct 10 14:30 -011405
> > -rw------- 1 alphengl alphengl 226 Oct 10 14:33 -011485
> > -rw------- 1 alphengl alphengl 226 Oct 10 14:42 -011611
> > [...]
> > 15:31 ~ $ cat \-011405
> > cat: invalid option -- 0
>
> Try something like
>
> $ cat ./-011405
>
> That is, always prepend ./ to the filename if you have files that
> start with -
>
> > What are they and how do I make them go away?
>
> I have no idea. Maybe doing cat will help to find out where they
> came from.
>
That did it, thanks. They were netscape bookmark files. How dumb.
Rob
--
The hardest thing in the world to understand is the income tax.
-- Albert Einstein
Reply to: