[ale] mv a file that starts with - ?

Derek Carter (aka goozbach) goozbach at friocorte.com
Tue Jan 26 16:34:36 EST 2010


On 01/26/2010 04:16 PM, 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

rm -- -file

for any of the apps which use getopts or getopts style options "--" 
means "stop parsing options start parsing arguments"

--
Derek aka goozbach


More information about the Ale mailing list