Skip to content

Instantly share code, notes, and snippets.

@IISResetMe
Created November 15, 2015 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IISResetMe/790730924b1effd4dc95 to your computer and use it in GitHub Desktop.
Save IISResetMe/790730924b1effd4dc95 to your computer and use it in GitHub Desktop.
Manually escape wildcards
gci Test*|select @{Name="Path";Expression={[regex]::Replace($_.FullName,"\[|\]|\*|\?",{'`{0}'-f$args[0]})}}|gci -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment