Skip to content

Commit 35666e8

Browse files
committed
Fix build error
1 parent 0718714 commit 35666e8

File tree

8 files changed

+41
-69
lines changed

8 files changed

+41
-69
lines changed

reference/5.1/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ command.
4343
For example, the following command gets the value of the **ProcessName** property of each process
4444
on the computer.
4545

46-
47-
```powershell
48-
Get-Process | ForEach-Object {$_.ProcessName}
49-
```
46+
`Get-Process | ForEach-Object {$_.ProcessName}`
5047

5148
`ForEach-Object` supports the `begin`, `process`, and `end` blocks as described in
5249
[about_Functions](about/about_functions.md#piping-objects-to-functions).
@@ -57,14 +54,12 @@ command.
5754
5855
- **Simplified syntax**. Using the simplified syntax, you a property or method name of the object in
5956
the pipeline. `ForEach-Object` returns the value of the property or method for each object in the
60-
the pipeline.
57+
pipeline.
6158

6259
For example, the following command also gets the value of the **ProcessName** property of each
6360
process on the computer.
6461

65-
```powershell
66-
Get-Process | ForEach-Object ProcessName
67-
```
62+
`Get-Process | ForEach-Object ProcessName`
6863

6964
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see
7065
[about_Simplified_Syntax](About/about_Simplified_Syntax.md).
@@ -90,8 +85,9 @@ This example takes an array of three integers and divides each one of them by 10
9085
This example processes the files and directories in the PowerShell installation directory `$PSHOME`.
9186

9287
```powershell
93-
Get-ChildItem $PSHOME |
94-
ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }}
88+
Get-ChildItem $PSHOME | ForEach-Object -Process {
89+
if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }
90+
}
9591
```
9692

9793
If the object isn't a directory, the script block gets the name of the file, divides the value of

reference/5.1/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ command.
248248
For example, the following command gets processes where the value of the **PriorityClass**
249249
property equals `Normal`.
250250

251-
```powershell
252-
Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}
253-
```
251+
`Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}`
254252

255253
All PowerShell comparison operators are valid in the script block format. For more information,
256254
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
@@ -264,10 +262,9 @@ command.
264262
For example, the following commands also get processes that have a priority class of `Normal`.
265263
These commands are equivalent and you can use them interchangeably.
266264

267-
```powershell
268-
Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ
269-
Get-Process | Where-Object PriorityClass -EQ Normal
270-
```
265+
`Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ`
266+
267+
`Get-Process | Where-Object PriorityClass -EQ Normal`
271268

272269
As shown in the example, the parameter names **Property** and **Value** are optional. The
273270
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter
@@ -1190,4 +1187,4 @@ You can read more about these methods here [about_Arrays](./About/about_Arrays.m
11901187

11911188
[Tee-Object](../Microsoft.PowerShell.Utility/Tee-Object.md)
11921189

1193-
[about_Booleans](about/about_Booleans.md)
1190+
[about_Booleans](./About/about_Booleans.md)

reference/7.4/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ command.
5252
For example, the following command gets the value of the **ProcessName** property of each process
5353
on the computer.
5454

55-
56-
```powershell
57-
Get-Process | ForEach-Object {$_.ProcessName}
58-
```
55+
`Get-Process | ForEach-Object {$_.ProcessName}`
5956

6057
`ForEach-Object` supports the `begin`, `process`, and `end` blocks as described in
6158
[about_Functions](about/about_functions.md#piping-objects-to-functions).
@@ -66,14 +63,12 @@ command.
6663
6764
- **Simplified syntax**. Using the simplified syntax, you a property or method name of the object in
6865
the pipeline. `ForEach-Object` returns the value of the property or method for each object in the
69-
the pipeline.
66+
pipeline.
7067

7168
For example, the following command also gets the value of the **ProcessName** property of each
7269
process on the computer.
7370

74-
```powershell
75-
Get-Process | ForEach-Object ProcessName
76-
```
71+
`Get-Process | ForEach-Object ProcessName`
7772

7873
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see
7974
[about_Simplified_Syntax](About/about_Simplified_Syntax.md).
@@ -117,8 +112,9 @@ This example takes an array of three integers and divides each one of them by 10
117112
This example processes the files and directories in the PowerShell installation directory `$PSHOME`.
118113

119114
```powershell
120-
Get-ChildItem $PSHOME |
121-
ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }}
115+
Get-ChildItem $PSHOME | ForEach-Object -Process {
116+
if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }
117+
}
122118
```
123119

124120
If the object isn't a directory, the script block gets the name of the file, divides the value of

reference/7.4/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ command.
255255
For example, the following command gets processes where the value of the **PriorityClass**
256256
property equals `Normal`.
257257

258-
```powershell
259-
Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}
260-
```
258+
`Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}`
261259

262260
All PowerShell comparison operators are valid in the script block format. For more information,
263261
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
@@ -271,10 +269,9 @@ command.
271269
For example, the following commands also get processes that have a priority class of `Normal`.
272270
These commands are equivalent and you can use them interchangeably.
273271

274-
```powershell
275-
Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ
276-
Get-Process | Where-Object PriorityClass -EQ Normal
277-
```
272+
`Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ`
273+
274+
`Get-Process | Where-Object PriorityClass -EQ Normal`
278275

279276
As shown in the example, the parameter names **Property** and **Value** are optional. The
280277
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter

reference/7.5/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ command.
5252
For example, the following command gets the value of the **ProcessName** property of each process
5353
on the computer.
5454

55-
56-
```powershell
57-
Get-Process | ForEach-Object {$_.ProcessName}
58-
```
55+
`Get-Process | ForEach-Object {$_.ProcessName}`
5956

6057
`ForEach-Object` supports the `begin`, `process`, and `end` blocks as described in
6158
[about_Functions](about/about_functions.md#piping-objects-to-functions).
@@ -66,14 +63,12 @@ command.
6663
6764
- **Simplified syntax**. Using the simplified syntax, you a property or method name of the object in
6865
the pipeline. `ForEach-Object` returns the value of the property or method for each object in the
69-
the pipeline.
66+
pipeline.
7067

7168
For example, the following command also gets the value of the **ProcessName** property of each
7269
process on the computer.
7370

74-
```powershell
75-
Get-Process | ForEach-Object ProcessName
76-
```
71+
`Get-Process | ForEach-Object ProcessName`
7772

7873
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see
7974
[about_Simplified_Syntax](About/about_Simplified_Syntax.md).
@@ -117,8 +112,9 @@ This example takes an array of three integers and divides each one of them by 10
117112
This example processes the files and directories in the PowerShell installation directory `$PSHOME`.
118113

119114
```powershell
120-
Get-ChildItem $PSHOME |
121-
ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }}
115+
Get-ChildItem $PSHOME | ForEach-Object -Process {
116+
if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }
117+
}
122118
```
123119

124120
If the object isn't a directory, the script block gets the name of the file, divides the value of

reference/7.5/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ command.
255255
For example, the following command gets processes where the value of the **PriorityClass**
256256
property equals `Normal`.
257257

258-
```powershell
259-
Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}
260-
```
258+
`Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}`
261259

262260
All PowerShell comparison operators are valid in the script block format. For more information,
263261
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
@@ -271,10 +269,9 @@ command.
271269
For example, the following commands also get processes that have a priority class of `Normal`.
272270
These commands are equivalent and you can use them interchangeably.
273271

274-
```powershell
275-
Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ
276-
Get-Process | Where-Object PriorityClass -EQ Normal
277-
```
272+
`Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ`
273+
274+
`Get-Process | Where-Object PriorityClass -EQ Normal`
278275

279276
As shown in the example, the parameter names **Property** and **Value** are optional. The
280277
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter

reference/7.6/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ command.
5252
For example, the following command gets the value of the **ProcessName** property of each process
5353
on the computer.
5454

55-
56-
```powershell
57-
Get-Process | ForEach-Object {$_.ProcessName}
58-
```
55+
`Get-Process | ForEach-Object {$_.ProcessName}`
5956

6057
`ForEach-Object` supports the `begin`, `process`, and `end` blocks as described in
6158
[about_Functions](about/about_functions.md#piping-objects-to-functions).
@@ -66,14 +63,12 @@ command.
6663
6764
- **Simplified syntax**. Using the simplified syntax, you a property or method name of the object in
6865
the pipeline. `ForEach-Object` returns the value of the property or method for each object in the
69-
the pipeline.
66+
pipeline.
7067

7168
For example, the following command also gets the value of the **ProcessName** property of each
7269
process on the computer.
7370

74-
```powershell
75-
Get-Process | ForEach-Object ProcessName
76-
```
71+
`Get-Process | ForEach-Object ProcessName`
7772

7873
The simplified syntax was introduced in Windows PowerShell 3.0. For more information, see
7974
[about_Simplified_Syntax](About/about_Simplified_Syntax.md).
@@ -117,8 +112,9 @@ This example takes an array of three integers and divides each one of them by 10
117112
This example processes the files and directories in the PowerShell installation directory `$PSHOME`.
118113

119114
```powershell
120-
Get-ChildItem $PSHOME |
121-
ForEach-Object -Process {if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }}
115+
Get-ChildItem $PSHOME | ForEach-Object -Process {
116+
if (!$_.PSIsContainer) {$_.Name; $_.Length / 1024; " " }
117+
}
122118
```
123119

124120
If the object isn't a directory, the script block gets the name of the file, divides the value of

reference/7.6/Microsoft.PowerShell.Core/Where-Object.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ command.
255255
For example, the following command gets processes where the value of the **PriorityClass**
256256
property equals `Normal`.
257257

258-
```powershell
259-
Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}
260-
```
258+
`Get-Process | Where-Object {$_.PriorityClass -eq "Normal"}`
261259

262260
All PowerShell comparison operators are valid in the script block format. For more information,
263261
see [about_Comparison_Operators](./About/about_Comparison_Operators.md).
@@ -271,10 +269,9 @@ command.
271269
For example, the following commands also get processes that have a priority class of `Normal`.
272270
These commands are equivalent and you can use them interchangeably.
273271

274-
```powershell
275-
Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ
276-
Get-Process | Where-Object PriorityClass -EQ Normal
277-
```
272+
`Get-Process | Where-Object -Property PriorityClass -Value Normal -EQ`
273+
274+
`Get-Process | Where-Object PriorityClass -EQ Normal`
278275

279276
As shown in the example, the parameter names **Property** and **Value** are optional. The
280277
**Property** parameter is a positional parameter mapped to position `0`. The **Value** parameter

0 commit comments

Comments
 (0)