monica_b1998@lemmy.world to Powershell · 5 days agoPipeline & object manipulation cheatsheetslicker.meexternal-linkmessage-square3linkfedilinkarrow-up111arrow-down10
arrow-up111arrow-down1external-linkPipeline & object manipulation cheatsheetslicker.memonica_b1998@lemmy.world to Powershell · 5 days agomessage-square3linkfedilink
minus-squarepurplemonkeymadlinkfedilinkarrow-up3·5 days agoCouple of little additions that you might like. You can expand properties using foreach-object as well. Eg Get-childitem | foreach-object name If you specify a method name instead of a property, it will call the method on the input object. You can also inspect types using [typename].getmembers() to list properties and methods without having to create an instance for get-member.
Couple of little additions that you might like.
You can expand properties using foreach-object as well. Eg
If you specify a method name instead of a property, it will call the method on the input object.
You can also inspect types using [typename].getmembers() to list properties and methods without having to create an instance for get-member.