Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created April 6, 2020 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/77ec3227bae37fdabab4d369769291f5 to your computer and use it in GitHub Desktop.
Save bielawb/77ec3227bae37fdabab4d369769291f5 to your computer and use it in GitHub Desktop.
Konwertowanie typów
$plikCsv = @'
Nazwa,Liczba
Jedenaście,11
Dwa,2
Siedem,7
Osiem,8
'@ | ConvertFrom-Csv
$plikCsv | Where-Object { $_.Liczba -lt 5}
# Zwróci jedenaście - porównujemy ciągi znaków...
$plikCsv | Where-Object { 5 -gt $_.Liczba }
# Zwróci jedynie 2 - porównujemy liczby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment