add new chinese translations
This commit is contained in:
17
pages.zh/windows/get-content.md
Normal file
17
pages.zh/windows/get-content.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 获取内容
|
||||
|
||||
> 获取指定位置项的内容。
|
||||
> 注意:此命令只能通过 PowerShell 使用。
|
||||
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content>。
|
||||
|
||||
- 显示文件的内容:
|
||||
|
||||
`Get-Content -Path {{path\to\file}}`
|
||||
|
||||
- 显示文件的前几行:
|
||||
|
||||
`Get-Content -Path {{path\to\file}} -TotalCount {{10}}`
|
||||
|
||||
- 显示文件的内容,并持续读取,直到按下 `Ctrl + C`:
|
||||
|
||||
`Get-Content -Path {{path\to\file}} -Wait`
|
Reference in New Issue
Block a user