% Migration des venv vers une nouvelle version de python ```bash find /Users/lauhub/Documents/ -iname python -a -type l > migration-python-venv-list.txt while read f ; do echo $f ; done < migration-python-venv-list.txt while read f ; do echo ">>> $f" ; ls -l "$(dirname "$f")"/python* ; done < migration-python-venv-list.txt ``` ```bash while read f do echo ">>> $f" cd "$(dirname "$f")" for plink in python* do if [[ $plink =~ python3\...$ ]] then target_sub_version=$(plink#*python3\.) print target_sub_version=$target_sub_version fi ptarget=$(readlink $plink) if [[ "$ptarget" =~ ^/usr/local/ ]] ; then rm "$plink" newtarget=/opt/homebrew/bin/python/ fi done cd - done < migration-python-venv-list.txt ```