Wes Owen wrote:

> At 06:11 PM 7/11/00 , you wrote:
> >some program, gphoto I think, named a bunch of files -004.jpg -005.jpg
> >....
> >when I try to issue a command on them to rename them like chmod or mv it
> >won't work because the command interprets -0 as an option (and of course
> >there is no option 0)  I thought that there was syntax to say anything
> >past this is NOT an option but I cannot find it if it exists.  How can I
> >rename these files?
> >
> >Bret
> >
> >
> >--
> >To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> >as the Subject.
>
> mv ./-filename filename
>
> Took me a minute to figure out.
>
> I was surprised that mv '-filename' filename or mv "-filename" filename
> didn't work.
>
> Wes

Thanks to both of you.  I hope I can remember it next time but at least now
it is archived :)  Two interesting approaches.  Wes, yours is one I am kind
of mad I did not think of.  Gordon's suggestion of -- seems to be using
functionallity of the shell, maybe that is where I read the "what follows is
not an option thing".  Someday I may find it again so I can apply it to
other issues as well.

BTW I ended up changing it from a win98 machine that could access the
partition via samba.  No problems at all.  I wonder what the command looks
like that ends up being sent via samba looks like?  Are direct systems calls
made or is there a  shell somewhere?

Bret


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to