This function is part of the OZOFiles PowerShell module.
Returns the first "Length" characters of a string. If Length is longer than String, the original string is returned.
Get-OZOStartSubString
-String <String>
-Length <Int32>
| Parameter | Description |
|---|---|
String |
The string to parse. Accepts pipeline input. |
Length |
The number of characters to return. |
Get-OZOStartSubString -String "The quick brown fox jumps over the lazy dog." -Length 8
The quic"The quick brown fox jumps over the lazy dog." | Get-OZOStartSubString -Length 8
The quicSystem.String