Created
March 21, 2015 18:40
-
-
Save jaysonsantos/04a71ba9c008c8873090 to your computer and use it in GitHub Desktop.
List only outdated pip packages that exists in local requirements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pip list -o|while read i; do | |
pkg_name="$(echo $i | awk '{print $1}')" | |
grep -rin "$pkg_name" requirements/ &> /dev/null | |
if [ "$?" -eq "0" ]; then | |
echo $i | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment