Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object.

## Long description

PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that
PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that
refer to the current object in the pipeline.

`$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to
Expand All @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage.
There are a few common use cases for `$PSItem`:

- In the scriptblock for the **Process** parameter of the
`ForEach-Object`cmdlet
`ForEach-Object` cmdlet
- In the scriptblock for the **FilterScript** parameter of the `Where-Object`
cmdlet
- In the intrinsic methods **ForEach** and **Where**
Expand Down
9 changes: 6 additions & 3 deletions reference/5.1/Microsoft.PowerShell.Core/Clear-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history.
### IDParameter (Default)

```
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CommandLineParameter
Expand Down Expand Up @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get-
enter more than one string, `Clear-History` deletes commands that match any of the strings. The
**CommandLine** parameter can be used with **Count**.

For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md).
For strings with a space, use single quotations. For more information, see
[about_Quoting_Rules](About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down Expand Up @@ -401,7 +403,8 @@ information, see [about_History](About/about_History.md).

The session history is managed separately from the history maintained by the **PSReadLine** module.
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
the session history. For more information, see
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).

## RELATED LINKS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object.

## Long description

PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that
PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that
refer to the current object in the pipeline.

`$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to
Expand All @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage.
There are a few common use cases for `$PSItem`:

- In the scriptblock for the **Process** parameter of the
`ForEach-Object`cmdlet
`ForEach-Object` cmdlet
- In the scriptblock for the **FilterScript** parameter of the `Where-Object`
cmdlet
- In the intrinsic methods **ForEach** and **Where**
Expand Down
9 changes: 6 additions & 3 deletions reference/7.4/Microsoft.PowerShell.Core/Clear-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history.
### IDParameter (Default)

```
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CommandLineParameter
Expand Down Expand Up @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get-
enter more than one string, `Clear-History` deletes commands that match any of the strings. The
**CommandLine** parameter can be used with **Count**.

For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md).
For strings with a space, use single quotations. For more information, see
[about_Quoting_Rules](About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down Expand Up @@ -402,7 +404,8 @@ information, see [about_History](About/about_History.md).

The session history is managed separately from the history maintained by the **PSReadLine** module.
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
the session history. For more information, see
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).

## RELATED LINKS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object.

## Long description

PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that
PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that
refer to the current object in the pipeline.

`$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to
Expand All @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage.
There are a few common use cases for `$PSItem`:

- In the scriptblock for the **Process** parameter of the
`ForEach-Object`cmdlet
`ForEach-Object` cmdlet
- In the scriptblock for the **FilterScript** parameter of the `Where-Object`
cmdlet
- In the intrinsic methods **ForEach** and **Where**
Expand Down
5 changes: 3 additions & 2 deletions reference/7.5/Microsoft.PowerShell.Core/Clear-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history.
### IDParameter (Default)

```
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CommandLineParameter
Expand Down Expand Up @@ -403,7 +404,7 @@ information, see [about_History](About/about_History.md).

The session history is managed separately from the history maintained by the **PSReadLine** module.
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
the session history. For more information see,
the session history. For more information, see
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).

## RELATED LINKS
Expand Down
9 changes: 6 additions & 3 deletions reference/7.6/Microsoft.PowerShell.Core/Clear-History.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history.
### IDParameter (Default)

```
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm] [<CommonParameters>]
Clear-History [[-Id] <int[]>] [[-Count] <int>] [-Newest] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### CommandLineParameter
Expand Down Expand Up @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get-
enter more than one string, `Clear-History` deletes commands that match any of the strings. The
**CommandLine** parameter can be used with **Count**.

For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md).
For strings with a space, use single quotations. For more information, see
[about_Quoting_Rules](About/about_Quoting_Rules.md).

```yaml
Type: System.String[]
Expand Down Expand Up @@ -402,7 +404,8 @@ information, see [about_History](About/about_History.md).

The session history is managed separately from the history maintained by the **PSReadLine** module.
Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with
the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).
the session history. For more information, see
[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md).

## RELATED LINKS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object.

## Long description

PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that
PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that
refer to the current object in the pipeline.

`$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to
Expand All @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage.
There are a few common use cases for `$PSItem`:

- In the scriptblock for the **Process** parameter of the
`ForEach-Object`cmdlet
`ForEach-Object` cmdlet
- In the scriptblock for the **FilterScript** parameter of the `Where-Object`
cmdlet
- In the intrinsic methods **ForEach** and **Where**
Expand Down