#!/bin/bashif[-z"$1"];thenecho"Usage:$0<directory>"echo""echo"Makes sure that all python scripts use the python2 command"exit1fiforfilein$(grep -rl 'env python *$' $1);doif[-z"$file"];thenecho"Error finding files."exit1fised-i's/env python *$/env python2/g'$filedone