Skip to content

Instantly share code, notes, and snippets.

@FunTimeCoding
Created December 25, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FunTimeCoding/326781176852532bf786 to your computer and use it in GitHub Desktop.
Save FunTimeCoding/326781176852532bf786 to your computer and use it in GitHub Desktop.
Print a compact list of outdated pip packages.
#!/bin/sh -e
OUTPUT=$(pip list --outdated)
PACKAGES=$(echo "${OUTPUT}" | grep Current)
NAMES=$(echo "${PACKAGES}" | awk '{print $1}')
for NAME in ${NAMES}; do
echo "${NAME}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment