> 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 _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
