Skip to content

Instantly share code, notes, and snippets.

@stej
Created April 7, 2011 19:33
Show Gist options
  • Save stej/908513 to your computer and use it in GitHub Desktop.
Save stej/908513 to your computer and use it in GitHub Desktop.
question about PowerShell doc
PowerShell guys,
I answered a question on SO with this code:
Get-ChildItem directory |
Rename-Item -NewName { $_.Name -replace '^filename_+','' -replace '_+',' ' }
Zdan asked me where in the documentation could be found that -NewName accepts scriptblock as a parameter.
Is there anything in the doc about that?
Thx for your answers (here, on Twitter, or even on SO) :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment