Linux/Unix question

來源: acac 2007-02-20 21:07:39 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (414 bytes)
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.

所有跟帖: 

cat -- "-123.index" -butdie- 給 butdie 發送悄悄話 (101 bytes) () 02/20/2007 postreply 23:25:50

你太有才了。 -yahoocc- 給 yahoocc 發送悄悄話 yahoocc 的博客首頁 (0 bytes) () 02/21/2007 postreply 00:29:34

Thanks! On my system: cat -- '-123.index' -acac- 給 acac 發送悄悄話 (0 bytes) () 02/22/2007 postreply 16:13:44

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”