Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 769 Bytes

File metadata and controls

33 lines (28 loc) · 769 Bytes

Get-OZOStartSubString

This function is part of the OZOFiles PowerShell module.

Description

Returns the first "Length" characters of a string. If Length is longer than String, the original string is returned.

Syntax

Get-OZOStartSubString
    -String <String>
    -Length <Int32>

Parameters

Parameter Description
String The string to parse. Accepts pipeline input.
Length The number of characters to return.

Examples

Example 1

Get-OZOStartSubString -String "The quick brown fox jumps over the lazy dog." -Length 8
The quic

Example 2

"The quick brown fox jumps over the lazy dog." | Get-OZOStartSubString -Length 8
The quic

Outputs

System.String