Great playlist! Quick suggestion: is it possible to reduce your window size, sometimes terminal results are not visible, maybE reduce it just enough so terminal is visible!
$x = @() @() instantiates the variable as an array. $x = cat my.csv | ConvertFrom-CSV # overwrites your array $x += cat my.csv | ConvertFrom-CSV # appends to your array another example of appending results to an array: get-childitem *many*.csv | ForeachObject { $x += cat $_ | ConvertTo-CSV } or you could just do this $x = get-childitem *many*.csv | ForeachObject { cat $_ | ConvertTo-CSV } or you could just do this $x = dir *many*.csv | cat | ConvertFrom-CSV
Sick tutorials dude thanks
Great playlist! Quick suggestion: is it possible to reduce your window size, sometimes terminal results are not visible, maybE reduce it just enough so terminal is visible!
Nice course... it would be nice to explain some of the parameters you use like i.e. NoteProperty with the Add-Member cmdlet...
You can find them in his Beginner PowerShell 7 Tutorial serie :) th-cam.com/video/rxafOc0tA_o/w-d-xo.htmlsi=kMJEo6qENFtFtfUN
I am new to your channel. If you can do a short video on using an open array @() when importing a CSV if you haven't done so already. Thanks
$x = @()
@() instantiates the variable as an array.
$x = cat my.csv | ConvertFrom-CSV # overwrites your array
$x += cat my.csv | ConvertFrom-CSV # appends to your array
another example of appending results to an array:
get-childitem *many*.csv | ForeachObject { $x += cat $_ | ConvertTo-CSV }
or you could just do this
$x = get-childitem *many*.csv | ForeachObject { cat $_ | ConvertTo-CSV }
or you could just do this
$x = dir *many*.csv | cat | ConvertFrom-CSV
I was under the impression that "Methods" were something distinct from a function or cmdlet. Am i missing something?