Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sudo apt-get install python pip wget
pip install jq xq
wget -rl1
find -iname '*.tar.gz' | xargs tar xvzf
nxml=`find -iname '*.xml'| wc -l`;(find -iname '*.xml' | xargs -n 1 -P 6 -I {} bash -c 'file={};cat $file | xq "." > ${file/xml/json}' &) && while(true);do find -iname '*.json' | wc -l | awk -v nxml=$nxml '{printf "\rconversion xml>json en cours : " $1 "/" nxml}';sleep 1;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment