http://www.techscore.com/tech/XML/index.html/
rm log
cnt=0
while true
do
cnt=`expr $cnt + 1`
KEY=`cat strings_ja.xml | xpath -q -e "/resources/string[$cnt]/@*" |cut -d'=' -f2 2>>log`
JAPAN=`cat strings_ja.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
ENGLISH=`cat strings_en.xml | xpath -q -e "/resources/string[@name=$KEY]/text()" 2>>log`
if [ $KEY ]; then
echo $cnt , $KEY , \"$JAPAN\" , \"$ENGLISH\"
else
break
fi
done
0 件のコメント:
コメントを投稿