On Wed, Jul 12, 2000 at 07:28:06PM -0500, Bret Hughes wrote:
> I RTFmvM but did not RTFrmM since I was trying to rename the files :)
Duh, one slap on the wrist for me for not reading properly... :-/ Sorry!
> You are right though, Linux does use GNU rm and the man page for rm
> does indeed spea
Gordon Messmer wrote:Close, it's functionality of the getopt() library. The
shell
> interperets command lines, but not arguments.
>
Makes sense thanks.
>
> > 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
Thomas Ribbrock wrote:
>
>
> GNU rm, like every program that uses the getopt function to
> parse its arguments, lets you use the -- option to indicate
> that all following arguments are non-options. To remove a
> file called `-f' in the current directory, you could ty
> > I was surprised that mv '-filename' filename or mv "-filename" filename
> > didn't work.
That's because the shell interperets the quotes and removes them before
passing the option to mv. The commands:
mv "this" "that"
mv 'this' 'that'
are both equivalent to :
mv this that
mv is launched with
On Wed, Jul 12, 2000 at 07:43:10AM -0500, Bret Hughes wrote:
>
> Thanks to both of you. I hope I can remember it next time but at least now
> it is archived :)
[...]
> Gordon's suggestion of -- seems to be using
> functionallity of the shell,
Well, the "--" approach is what's listed in the rm m
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
Bret Hughes wrote:
> some program, gphoto I think, named a bunch of files -004.jpg -005.jpg
...
> past this is NOT an option but I cannot find it if it exists. How can I
> rename these files?
prefix the name with --
mv -- -004.jpg 004.jpg
rm -- -005.jpg
MSG
--
To unsubscribe: mail [EMAIL P
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
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