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
DIR
command is similar to Get-ChildItem
command. The |
is similar to foreach
statement. The $_
sign indicates each element in foreach
loop. In your case, the code should get all which have .txt
extension from some location and then rename each of those elements due to { $_.name –replace “.“,”-” }
rule