Posted By

jarnaldich on 07/05/11


Tagged

regex delete regexp PowerShell


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

michanne


Delete files in a directory tree matching a regex


 / Published in: Windows PowerShell
 

  1. gci -recurse | ? { $_\3.Name -match "<REGEX>" } | ri

Report this snippet  

You need to login to post a comment.