Skip to content

Instantly share code, notes, and snippets.

@jiikko
Created February 26, 2014 08:59
Show Gist options
  • Save jiikko/9226108 to your computer and use it in GitHub Desktop.
Save jiikko/9226108 to your computer and use it in GitHub Desktop.
#!/bin/sh
find ./ -type f -name "*.html" | while read i
do
nkf -w $i > $i._backup
done
find ./ -type f -name "*._backup" | while read i
do
echo $i
dist=`echo $i | sed -e s/._backup//`
mv $i $dist
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment