0
我想要讀取文件內容,執行一些處理並使用Expect
腳本編寫工具將它們寫入另一個文件。使用期望文件
讓我們假設我有FILE_A包含以下數據:
The IP address of this machine is: "0.0.0.0"
我想讀FILE_A的內容,修改它們並將它們寫入FILE_B,這應該是這樣的:
The IP address of this machine is: "192.168.0.69"
任何人都可以幫助我嗎?
「預期」是「Tcl」的擴展。看看[這裏](http://wiki.tcl.tk/367)瞭解如何使用'Tcl'和[this]來讀/寫(https://www.tcl.tk/man/tcl8 .6/TclCmd/contents.htm)也可能有幫助。 – Dinesh