5i365 (我心飞扬)当前离线
上尉
TOP
idwma 当前离线
少校
https://stackoverflow.com/questions/45266461/set-content-appends-a-newline-line-break-crlf-at-the-end-of-my-file复制代码
[Text.Encoding]::default.GetBytes($((gc a.txt) -join "`r`n" -replace '\s+\r\n',"`r`n")) | sc -enc byte b.txt复制代码