Skip to content

Fix parameter's position in Get-Content.md #1959

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

Merged
merged 1 commit into from
Dec 15, 2017
Merged
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
24 changes: 14 additions & 10 deletions reference/3.0/Microsoft.PowerShell.Management/Get-Content.md
Original file line number Diff line number Diff line change
@@ -14,19 +14,23 @@ Gets the content of the item at the specified location.
## SYNTAX

### Path (Default)
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

### LiteralPath
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
[-Stream <String>] [<CommonParameters>]
```powershell
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -311,7 +315,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
24 changes: 14 additions & 10 deletions reference/4.0/Microsoft.PowerShell.Management/Get-Content.md
Original file line number Diff line number Diff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
## SYNTAX

### Path (Default)
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

### LiteralPath
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
[-Stream <String>] [<CommonParameters>]
```powershell
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

## DESCRIPTION
@@ -198,7 +202,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
22 changes: 13 additions & 9 deletions reference/5.0/Microsoft.PowerShell.Management/Get-Content.md
Original file line number Diff line number Diff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
## SYNTAX

### Path (Default)
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

### LiteralPath
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
[-Stream <String>] [<CommonParameters>]
```powershell
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

## DESCRIPTION
22 changes: 13 additions & 9 deletions reference/5.1/Microsoft.PowerShell.Management/Get-Content.md
Original file line number Diff line number Diff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
## SYNTAX

### Path (Default)
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

### LiteralPath
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
[-Stream <String>] [<CommonParameters>]
```powershell
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

## DESCRIPTION
55 changes: 13 additions & 42 deletions reference/6/Microsoft.PowerShell.Management/Get-Content.md
Original file line number Diff line number Diff line change
@@ -16,20 +16,22 @@ Gets the content of the item at the specified location.
## SYNTAX

### Path (Default)
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

### LiteralPath
```
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
```powershell
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
[-Force] [-Credential <PSCredential>] [-UseTransaction]
[-Delimiter <String>] [-Wait] [-Raw]
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
[<CommonParameters>]
```

@@ -263,37 +265,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationAction
Type a user name, such as "User01" or "Domain01\User01", or enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.

This parameter is not supported by any providers that are installed with Windows PowerShell.```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationVariable
Type a user name, such as "User01" or "Domain01\User01", or enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.

This parameter is not supported by any providers that are installed with Windows PowerShell.```yaml
Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LiteralPath
Specifies the path to an item.
Unlike the *Path* parameter, the value of *LiteralPath* is used exactly as it is typed.
@@ -324,7 +295,7 @@ Parameter Sets: Path
Aliases:

Required: True
Position: 1
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False