filenames starting with a '-'

Nick Estes nick@opnix.com
Sat, 28 Oct 2000 22:12:12 -0700 (MST)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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  -  Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5+7Gxv+hjYTGg7s4RAhjKAJ405KoaqYTag9T//wW5pKk/rZ2pxACcCjN3
sbB1t59Th2ohaXQWna3P3Og=
=gw7Z
-----END PGP SIGNATURE-----