Skip to main content

List all your Github repositories containing a filename matching a search pattern.

ghgrep is partially grep -l and partially find -name - you can pretend it is a special version of grep(1) in which files are actually repositories and each line of a file is actually a filename inside the repository.

Examples

Show all repositories with a readme:

ghgrep 'README.*'

List all repositories that have a file named ‘COPYING’:

ghgrep -f COPYING

List all repositories that don’t have a license file:

ghgrep -v (COPYING|LICENSE)

Installation

[$]> pip install ghgrep

or

[$]> easy_install ghgrep

Hacking

I highly recommend using virtualenv:

[$]> virtualenv --no-site-packages --distribute env
[$]> source env/bin/activate
[$]> pip install -r requirements.txt
[$]> pip install -e . # So we can import the version from inside bin/ .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghgrep-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file ghgrep-1.0.1.tar.gz.

File metadata

  • Download URL: ghgrep-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ghgrep-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0f9bcda388b3454fdb60dc748b6b24b3f715911641cc1d8b7d685ded24c406ad
MD5 424708bc939217a12547a8886ada42fe
BLAKE2b-256 7abe0f6cc0e8df87eb5734066f352e1bede5cbf79ff96684578a6f25551ffca4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page