-
Notifications
You must be signed in to change notification settings - Fork 0
Test FinalNewline
github-actions edited this page Jul 24, 2026
·
1 revision
Returns true if a file ends with a newline as required by the POSIX standard for text files.
Test-FinalNewline [-Path] <String> [-Strict] [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Test-FinalNewline README.md
True
The file to test.
Type: String
Parameter Sets: (All)
Aliases: FullName
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False{{ Fill Strict Description }}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.