On Fri, 2003-08-01 at 10:38, Michael Kraus wrote: > G'day all... > > If I was wanting to move a file called ---.dat to another name (say > foo.dat) - how would I go about it? > > mv interprets the "-" in the filename as a parameter switch (and as the > shell expands wildcards, they are futile) - how do I tell mv that its > the file to operate upon? >
This type of question normally starts a huge thread about the best ways.... In my book, the best way is mv -- ---.bar foo.bar The initial double dashes tell mv that everything after is NOT an option but an arg. TG -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
