info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commands on filenames starting with "-"


From: Tassilo Horn
Subject: Re: Commands on filenames starting with "-"
Date: Fri, 10 Dec 2010 08:05:58 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Haines Brown <haines@HistoricalMaterialism.info> writes:

> I've managed to create some files, the names of which start with a
> dash ("-"). Stupid, I know.

No, there's no restriction from using those filenames.

> I have not been able to figure out how to run commands on them such as
> cat or to cut out the leading dash (mv).

Use -- to tell the command, that from there on, no options are given
anymore.

# Delete the files -i and --interactive
$ rm -- -i --interactive

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]