Skip to content

Instantly share code, notes, and snippets.

@moccos
Created February 4, 2015 05:51
Show Gist options
  • Save moccos/186060a84841c188e2c7 to your computer and use it in GitHub Desktop.
Save moccos/186060a84841c188e2c7 to your computer and use it in GitHub Desktop.
全ファイルをnkfに通すだけ
#!/bin/sh
EXT=csv
FILES=`find *.$EXT -name "*_.$EXT" -prune -o -print`
SUFFIX=_
OPTS=
for FILE in $FILES; do
NAME=${FILE%.*}
echo processing $NAME
nkf $OPTS < $FILE > $NAME${SUFFIX}.$EXT
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment