filenames starting with a '-'

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nick Estes
Date:  
Subject: filenames starting with a '-'
There's a couple different ways to do it:

1) cp -- -001 /wherever
or
2) cp ./-001 /whereever

The same format should work with rm and mv too.

    --Nick


On Sat, 28 Oct 2000, Don Harrop wrote:

> I was using gphoto to get some images form a camera and didn't assign a
> default filename to prefix the -001 -002 -003... etc.. Now I've got a
> bunch of filenames that start with a '-' and when I use cp or mv on the
> files it thinks that it's an option instead of a file. Is there an
> undocumented option that will make cp/mv realize that it's dealing with a
> file? There are other ways to solve the problem but I'd like to know how
> to do it with cp/mv...
>
> Don
>
>
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> Plug-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


- --
Opnix, Inc. - Simply blast-your-hair-back-on-your-skull bandwidth.