Install xmlstarlet:
# sudo apt-get install xmlstarlet
Create a new BASH script:
# gedit miindx
# gedit miindx
Create BASH file in gedit:
#!/bin/bash
# Script to run commented XML files in Miind...
xmlstarlet c14n --without-comments $1.xml > $1_run_1.xml
cat $1_run_1.xml | tr -d '\t' > $1_run.xml
rm $1_run_1.xml
miind $1_run.xml
# Script to run commented XML files in Miind...
xmlstarlet c14n --without-comments $1.xml > $1_run_1.xml
cat $1_run_1.xml | tr -d '\t' > $1_run.xml
rm $1_run_1.xml
miind $1_run.xml
Make script executable:
# sudo chmod +x miindx
Run on test2.xml
# ./miindx test2
# ./miindx test2
No comments:
Post a Comment