最近遇到一個PowerShell 的陷阱,用Get-Content 讀檔時,不會保留換行符號。 ... (Get-Content C:\Users\Me\note.txt) -join "`n" 把它串回來即可。
確定! 回上一頁