Skip to content

Instantly share code, notes, and snippets.

@ruslangrimov
Last active October 7, 2019 19:12
Show Gist options
  • Save ruslangrimov/453f8beec7b0c2c346a454e126880113 to your computer and use it in GitHub Desktop.
Save ruslangrimov/453f8beec7b0c2c346a454e126880113 to your computer and use it in GitHub Desktop.
for file in $(find ../../files/ -name '*.pkl')
do
name=${file##*/}
name=${name%.*}
name=${name/"_xxxx"/"_zzzzz"}
folder=$(dirname ${file})
python -u pkl_to_json.py -i "${file}" -o "${folder}/${name}.json"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment