8 ms·
Most of the time (though not always) the methods are the utilities. From https://github.com/mikemaccana/powershell-profile/#how-does-powershell-actually-differ-
by nailer 7y ago
Most of the time (though not always) the methods are the utilities. From https://github.com/mikemaccana/powershell-profile/#how-does-powershell-actually-differ-from-bash-day-to-day https://github.com/mikemaccana/powershell-profile/#how-does-...
$results = @{}
ls -recurse -filter "eslint-scope" | foreach {
$file = "${PSItem}\package.json"
$version = cat $file | convertfrom-json | select -ExpandProperty version
$results.Add($file,$version) }
echo $results | format-list
You don't have to pipe to 'select', 'where' etc - if you send something to grep or select-string you'll be looking for regexs bash-style.