Skip to content

Instantly share code, notes, and snippets.

@zhangw
Created June 4, 2014 15:34
Show Gist options
  • Select an option

  • Save zhangw/211eb4a5d93729f1dedd to your computer and use it in GitHub Desktop.

Select an option

Save zhangw/211eb4a5d93729f1dedd to your computer and use it in GitHub Desktop.
foreach($i in ls -recurse -Include *.asp,*.js,*.html,*.css) {
$temp = get-content $i.fullname
out-file -filepath $i.fullname -inputobject $temp -encoding utf8 -force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment