I created a file named "-123.index" in a folder within my application. Now I tried to open this file with all the tools(commands) I can think of without success. Can anyone tell me how I can view it in Linux/Unix shell?
The commands "cat" and "vi" all treated the file name as an option.
[root@app01 /]# cat "-123.index"
cat: invalid option -- 1
Try `cat --help' for more information.
Linux/Unix question
所有跟帖:
•
cat -- "-123.index"
-butdie-
♂
(101 bytes)
()
02/20/2007 postreply
23:25:50
•
你太有才了。
-yahoocc-
♂
(0 bytes)
()
02/21/2007 postreply
00:29:34
•
Thanks! On my system: cat -- '-123.index'
-acac-
♂
(0 bytes)
()
02/22/2007 postreply
16:13:44