Skip to main content

grepath - find executables in PATH that match PATTERN

Project description

grepath utility prints full path to executables that match given file-pattern or regular expression.

Examples:

  • To print executables that contain ‘pdf’ anywhere in their name:

    $ grepath pdf
    /usr/bin/ps2pdf12
    /usr/bin/ps2pdf13
    ...[snip]...
    /usr/bin/simpdftex
    /usr/bin/dvipdf
  • To find executables that don’t have ‘e’ after ‘win’ in their name:

    C:\> grepath -e "win[^e]"
    C:\windows\system32\winhlp32.exe
    C:\windows\system32\winver.exe
    C:\windows\winhlp32.exe
    C:\windows\winhelp.exe

    If *.py files are not associated with python.exe then the script can be invoked using:

    C:\> python \path\to\grepath.py --help

To print all available options, type:

$ grepath --help

Files are licensed under the MIT License. See the file MIT-LICENSE.txt for details.

The latest version is at http://gist.github.com/79233

Project details


Download files

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

Source Distribution

grepath-0.0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page