filenames starting with a '-'

Jason jkenner@mindspring.com
Sun, 29 Oct 2000 05:22:01 -0700


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

And you cant even get something like cp ?001 to work. Frustrating,
isnt it?

The simple solution is to prepend the path. If the files are in the
current directory, prepend ./

./-001
./-002   etc

-- 
jkenner @ mindspring . com__
I Support Linux:           _> _  _ |_  _  _     _|
Working Together To       <__(_||_)| )| `(_|(_)(_|
To Build A Better Future.       |                   <s>