-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fixes #12836 - Fix accuracy of the output in examples #12840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml | ||
| Locale: en-US | ||
| Module Name: Microsoft.PowerShell.Management | ||
| ms.date: 01/18/2026 | ||
| ms.date: 03/11/2026 | ||
| online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.4&WT.mc_id=ps-gethelp | ||
| schema: 2.0.0 | ||
| aliases: | ||
|
|
@@ -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. | ||
|
Comment on lines
62
to
66
|
||
| 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 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml | ||
| Locale: en-US | ||
| Module Name: Microsoft.PowerShell.Management | ||
| ms.date: 01/18/2026 | ||
| ms.date: 03/11/2026 | ||
| online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.5&WT.mc_id=ps-gethelp | ||
| schema: 2.0.0 | ||
| aliases: | ||
|
|
@@ -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. | ||
|
Comment on lines
62
to
66
|
||
| 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 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml | ||
| Locale: en-US | ||
| Module Name: Microsoft.PowerShell.Management | ||
| ms.date: 01/18/2026 | ||
| ms.date: 03/11/2026 | ||
| online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-content?view=powershell-7.6&WT.mc_id=ps-gethelp | ||
| schema: 2.0.0 | ||
| aliases: | ||
|
|
@@ -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. | ||
|
Comment on lines
62
to
66
|
||
| 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Example 1, the prose says the file lines are in the format "This is Line X", but the example command and the updated output are "This is line X." (lowercase + trailing period). Please update the description sentence to match the actual content/output format.