[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] mv a file that starts with - ?
- Subject: [ale] mv a file that starts with - ?
- From: ale_nospam at fayettedigital.com (Jim Lynch)
- Date: Tue, 26 Jan 2010 16:44:04 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
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.