2 #--------------------------------------------------------------------
6 # update a smack rule by putting an input txt file
7 # 0. sudo apt-get install xmlstarlet
8 # 1. edit smackinput.txt
9 # 2. run update_smacktest.sh smackinput.txt
12 # ./update_smacktest.sh smackinput.txt
14 # check the result with 'git diff'
15 #--------------------------------------------------------------------
16 filelist=`ls ./data/*.xml`
20 #xmlstarlet ed --insert --pf "/vconfkeylists/vconfkey" --type attr -n uid -v "" $file > $file.temp
21 xmlstarlet ed --insert "/vconfkeylists/vconfkey" --type attr -n uid -v "" $file > $file.temp
22 #xmlstarlet ed --insert "/vconfkeylists/vconfkey" --type attr -n gid -v "6514" $file > $file.temp