Skip to content

Commit 01feadc

Browse files
greiginsydneysdwheeler
authored andcommitted
Minor grammar rework of example 2. (#4768)
+ even smaller correction to example 1.
1 parent fbc62a4 commit 01feadc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/6/Microsoft.PowerShell.Management/Add-Content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ their file name.
5050
Add-Content -Path .\*.txt -Exclude help* -Value 'End of file'
5151
```
5252

53-
The **Path** parameter to specifies all `.txt` files in the current directory, but the **Exclude**
53+
The **Path** parameter specifies all `.txt` files in the current directory, but the **Exclude**
5454
parameter ignores file names that match the specified pattern. The **Value** parameter specifies the
5555
text string that is written to the files.
5656

@@ -70,9 +70,9 @@ Tuesday, May 14, 2019 8:24:27 AM
7070
5/14/2019 8:24:27 AM
7171
```
7272

73-
The `Add-Content` creates two new files in the current directory. The **Value** parameter contains
74-
the output of the `Get-Date` The **PassThru** parameter outputs the added contents to the pipeline.
75-
Because there is no other cmdlets to receive the output, it is displayed in the PowerShell console.
73+
The `Add-Content` cmdlet creates two new files in the current directory. The **Value** parameter contains
74+
the output of the `Get-Date` cmdlet. The **PassThru** parameter outputs the added contents to the pipeline.
75+
Because there is no other cmdlet to receive the output, it is displayed in the PowerShell console.
7676
The `Get-Content` cmdlet displays the updated file, `DateTimeFile1.log`.
7777

7878
### Example 3: Add the contents of a specified file to another file

0 commit comments

Comments
 (0)