diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-25 10:14:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-25 10:14:18 -0300 |
commit | 974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f (patch) | |
tree | 8dfd4790580a6b4b9fdada6c3f98263424442bdb | |
parent | 4d46ae89a169c608e59798fd507fad1e04408a73 (diff) | |
download | clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.gz clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.bz2 clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.tar.xz clientdata-974e5cd855c0cbe1b7e6955a5cd7380d3b9d990f.zip |
Add converter utility
-rwxr-xr-x | items/convert.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/items/convert.sh b/items/convert.sh new file mode 100755 index 00000000..81b67959 --- /dev/null +++ b/items/convert.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +TARGET="equip-2hand" + +cd $TARGET +sed -i '/xml version/d' *.xml +sed -i '/items/d' *.xml +echo "<?xml version=\"1.0\"?>" > ../$TARGET.xml +echo "<items>" >> ../$TARGET.xml +echo "REPORT FOR ../$TARGET.xml =========" +cat ../$TARGET.xml +echo "===================================" +cat *.xml >> ../$TARGET.xml +echo "</items>" >> ../$TARGET.xml +cd .. ; rm -r $TARGET +tidy -m --indent-attributes y -xml -i $TARGET.xml + |