Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. find ./ -name '*.php' -o -name '*.html' -o -name '*.css' -o -name '*.js' -type f |
  4. while read file
  5. do
  6. echo " $file"
  7. mv $file $file.icv
  8. iconv -f ISO-8859-1 -t UTF-8 $file.icv > $file
  9. rm -f $file.icv
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement