add new chinese translations
This commit is contained in:
17
pages.zh/windows/out-string.md
Normal file
17
pages.zh/windows/out-string.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Out-String
|
||||
|
||||
> 将输入对象输出为字符串。
|
||||
> 注意:此命令只能通过 PowerShell 使用。
|
||||
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/out-string>。
|
||||
|
||||
- 将主机信息作为字符串打印:
|
||||
|
||||
`Get-Alias | Out-String`
|
||||
|
||||
- 将每个对象转换为字符串,而不是将所有对象连接成一个字符串:
|
||||
|
||||
`Get-Alias | Out-String -Stream`
|
||||
|
||||
- 使用 `Width` 参数以防止截断:
|
||||
|
||||
`@{TestKey = ('x' * 200)} | Out-String -Width {{250}}`
|
Reference in New Issue
Block a user