Blob Blame Raw
#!/usr/bin/bash

# Author:  Ralf Senderek, Ireland
# License: GPL2+
# Date:    20/7/2019

echo "Find python files ..."
FILES=$(grep -l "env python" $(find . -type f) )
for X in $(echo $FILES) 
do
    echo changing: $X
    sed -i '1s/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' $X
    sed -i '1s/#! \/usr\/bin\/env python/#!\/usr\/bin\/python3/' $X
done