PowerShell “Period” operator, what does it do?

后端 未结 3 945
太阳男子
太阳男子 2021-01-29 03:43

I\'ve been looking online for a specific answer to better help me understand how this works. In PHP we use the \" . \" to concatenate strings. However in powershell I see things

3条回答
  •  太阳男子
    2021-01-29 04:08

    It's the member access operator. $_ is a special variable (the loop variable in this case). Therefore, $_.extension accesses or invokes the property extension on $_.

提交回复
热议问题