[ale] mv a file that starts with - ?

Jim Lynch ale_nospam at fayettedigital.com
Tue Jan 26 16:44:04 EST 2010


Greg Freemyer wrote:
> All,
>
> I have a bunch of files/directories that I encrypt via encfs.
>
> I want to mv the encrypted files from one location to another.
>
> Not too hard, except one of the files starts with - and mv is taking
> it as an invalid argument.
>
> I've forgotten if there is a workaround for this or not.
>
> Thanks
> Greg
>
> --
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>   
A couple of possibilities come to mind.  Try referring to the file as 
./-xyz.  Also some commands will stop processing at a double dash, e. 
g.   rm -rf -- -dumbfilename

Jim.



More information about the Ale mailing list