Can't remove or move file

Eitan Adler lists at eitanadler.com
Fri Aug 20 16:44:34 UTC 2010


On Fri, Aug 20, 2010 at 12:00 PM, Rem P Roberti <remegius at comcast.net> wrote:
>  This is a new one for me.  I converted a YouTube selection using youtube_dl
> and the file that was created was named -elDeJaPWGg.flv.  When I try to
> rename it, or delete it, I get an error message thus:
>
> root@ ~: rm -elDeJaPWGg.flv
> rm: illegal option -- e
> usage: rm [-f | -i] [-dIPRrvW] file ...
>       unlink file
>
> No switch with either the rm or mv command works.  What is actually going on
> here?
>
You may find this article interesting:
How to properly deal with filenames in shell scripts:
http://www.dwheeler.com/essays/filenames-in-shell.html
Some more detail (and a possible "fix"):
http://www.dwheeler.com/essays/fixing-unix-linux-filenames.htm


-- 
Eitan Adler


More information about the freebsd-questions mailing list