Created
February 4, 2015 05:51
-
-
Save moccos/186060a84841c188e2c7 to your computer and use it in GitHub Desktop.
全ファイルをnkfに通すだけ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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