Skip to content

Instantly share code, notes, and snippets.

View s-belichenko's full-sized avatar

Stas B. s-belichenko

  • Russia, Mocsow
View GitHub Profile
@s-belichenko
s-belichenko / convert.sh
Created January 31, 2019 07:31 — forked from akost/convert.sh
Bash script for recursive file convertion windows-1251 --> utf-8
#!/bin/bash
# Recursive file convertion windows-1251 --> utf-8
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -o -name "*.md" -o -name "*.ru" -o -name "*.en" -type f |
while read file
do