Created
April 7, 2011 19:33
-
-
Save stej/908513 to your computer and use it in GitHub Desktop.
question about PowerShell doc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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