Thread:JoetjeF/@comment-177.40.107.187-20170706015211/@comment-3083005-20170706074203

xml_grep --text_only --cond '*[@name="'MH_CACHE_API_DATA_MONSTER_JSON'"]' $xml | python3 -c 'import sys, urllib.parse; print(urllib.parse.unquote(sys.stdin.read))' | grep -oP '(?<=\[").*?(?="])' | sed 's/","/"\n"/g' |sed 's/^"//g' | sed 's/"$//g'


 * I know windows does odd things with quotes so you may need to play around with it (I use Linux)
 * Python command is to urldecode the string
 * The grep/sed commands are to format the data so it can be easily used for grep/cut, can be done manually too