1
Q
無法識別的令牌
A
回答
0
如果你不知道什麼是命令,你怎麼能問What do I have to do to make the command work
。你究竟想要做什麼?
演示:
兩個cit
和cot
不是不是它們是文件的命令。
$ cat cit
This is cit
$ cat cot
This is cot
命令:
$ < cit cat - cot
This is cit
This is cot
正在做的只是一種奇怪的方式:
$ cat cit cot
This is cit
This is cot
的>
是,cat
輸出重定向到cit
但這將有一個重定向操作意外的結果,因爲您正在寫入您正在閱讀的文件:
$ cat cit
This is cot
查看原始內容cit
已丟失,僅編寫內容cot
。 cot
不受影響:
$ cat cot
This is cot
如果這是期望的行爲,你應該看看複製命令cp
:
$ cp cot cit
如果所需的行爲的cit
和cot
級聯,那麼你需要使用臨時文件以避免clobbering:
$ cat cit cot > tmp
$ mv tmp cit
你也可以做這種使用邏輯和運營商&&
:
$ cat cit cot > tmp && mv tmp cit
相關問題
- 1. SQLiteException:無法識別的令牌
- 2. sqlite無法識別的令牌
- 3. 無法識別的令牌和
- 4. Sqlite'無法識別的令牌:「:」C++
- 5. sqlite3.OperationalError:無法識別的令牌:「{」
- 6. ReactJS無法識別的令牌導入
- 7. android.database.sqlite.SQLiteException:無法識別的令牌:
- 8. JavaCC在令牌中識別令牌
- 9. 插入的SQLite無法識別的令牌異常
- 10. android android.database.sqlite.SQLiteException中的SQL錯誤:無法識別的令牌
- 11. 使用C#中的SQLITE在「@」附近無法識別的令牌
- 12. 自定義查詢上的Android SQLite無法識別的令牌
- 13. sqlite3的無法識別的令牌錯誤
- 14. 令牌識別順序
- 15. 爪哇識別令牌
- 16. antlr4令牌識別錯誤:'$'
- 17. 令牌更換和識別
- 18. 令牌識別錯誤:ANTLR
- 19. 使用strtok令牌識別()
- 20. 失敗1(無法識別的令牌: 「1295980589.jpg」)上0x2a6530
- 21. 無法識別的令牌: 「#」 C#對於SQLite
- 22. 「無法識別的令牌」,帶有特殊字符
- 23. jackson api無法識別的令牌問題,而反序列化
- 24. SQLite錯誤無法識別的令牌Unity
- 25. 「sqlite3.operationalerror無法識別的令牌」錯誤
- 26. sqlite3.OperationalError:無法識別的令牌:「01T00」Python日期戳
- 27. Bonita jackson無法識別的令牌期待('true','false'或'null')
- 28. JIRA Rest API錯誤。無法識別的令牌創建問題
- 29. 無法識別的令牌'('在值列表中,期待')'
- 30. 命令force無法識別的命令
我的導師只是給了我們這個週末來思考,我想我沒趕上什麼是最終的結果,他想。但是我執行了這些命令,希望能夠達到他想要的。非常感謝幫助的人! – 2013-03-24 16:01:16
@JurgenMalina好,所以你應該看看以下主題:**重定向**,** Clobbering **,**標準流**。您還需要upvote [接受此答案](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235)! – 2013-03-24 16:59:06