From 66f2f42f09444a6a39357d6651c0e3380f3bc355 Mon Sep 17 00:00:00 2001 From: PtJade Ceramic Date: Wed, 11 Mar 2026 21:44:48 +0800 Subject: [PATCH] Update Get-Content.md --- .../Get-Content.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/reference/7.5/Microsoft.PowerShell.Management/Get-Content.md b/reference/7.5/Microsoft.PowerShell.Management/Get-Content.md index 27f30b59972c..9a548bbff628 100644 --- a/reference/7.5/Microsoft.PowerShell.Management/Get-Content.md +++ b/reference/7.5/Microsoft.PowerShell.Management/Get-Content.md @@ -60,8 +60,8 @@ Get-Content -Path .\LineNumbers.txt ``` ```Output -This is Line 1 -This is Line 2 +This is Line 1. +This is Line 2. ... This is line 99. This is line 100. @@ -83,11 +83,11 @@ Get-Content -Path .\LineNumbers.txt -TotalCount 5 ``` ```Output -This is Line 1 -This is Line 2 -This is Line 3 -This is Line 4 -This is Line 5 +This is Line 1. +This is Line 2. +This is Line 3. +This is Line 4. +This is Line 5. ``` ### Example 3: Get a specific line of content from a text file @@ -101,7 +101,7 @@ that content. The **TotalCount** parameter gets the first 25 lines of content. T ``` ```Output -This is Line 25 +This is Line 25. ``` The `Get-Content` command is wrapped in parentheses so that the command completes before going to @@ -119,7 +119,7 @@ Get-Item -Path .\LineNumbers.txt | Get-Content -Tail 1 ``` ```Output -This is Line 100 +This is Line 100. ``` This example uses the `Get-Item` cmdlet to demonstrate that you can pipe files to `Get-Content`. The