-
-
Save bielawb/60bb3b5758756a8fe3a88d749210fc75 to your computer and use it in GitHub Desktop.
Uruchamiamy ForEach z nawiasami
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$zdania = @' | |
Zdanie | |
To jakieś zdanie | |
To zdanie jest nieco dłuższe | |
A w tym zdaniu lecimy już po bandzie z długością! | |
'@ | ConvertFrom-Csv | |
$zdania.ForEach( | |
{ | |
$_.Zdanie.Substring(0, 12) | |
} | |
) | |
<# | |
Na wyjściu: | |
To jakieś zd | |
To zdanie je | |
A w tym leci | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment