[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux filereading
From: |
Eric Blake |
Subject: |
Re: Linux filereading |
Date: |
Tue, 09 May 2006 19:08:42 +0000 |
> Hi,
>
> I am trying to open a file called "-2.xml" through VI editor/cat from
> command prompt. But unable to read the file as it is taking "-" as one
> option.
> I am getting the following error - cat: invalid option -- 2
This list does not support vi. However, we do provide this FAQ,
which probably applies to your case as well:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-called-_003cspan-class_003d_0022option_0022_003e_002d_002dhelp_003c_002fspan_003e_002e-How-do-I-remove-it_003f
In short, try 'vi -- -2.xml' or 'vi ./-2.xml'.
--
Eric Blake