Skip to content

Instantly share code, notes, and snippets.

@lndbrg
Created August 31, 2011 20:04
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 lndbrg/1184559 to your computer and use it in GitHub Desktop.
Save lndbrg/1184559 to your computer and use it in GitHub Desktop.
ghc-pkg check 2>&1 | grep 'There are problems' | cut -d' ' -f6
or
ghc-pkg check 2>&1 | awk '/There are problems/ { print $6 } '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment