🍺 BREW Explorer

← all formulae

eg-examples

brew install eg-examples v1.2.3 MIT

Useful examples at the command-line

12
30-day installs · #8005
58
90-day · #6900
277
365-day · #6511
2.0k
★ GitHub stars · updated 1y ago

Runtime dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [
    "eg"
  ],
  "dependencies": [
    "python@3.14"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Useful examples at the command-line",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:15+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "eg-examples",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-02-06T16:56:22Z",
  "github_readme_excerpt": "# eg\n\n\u003e Useful examples at the command line.\n\n[![Build Status](https://travis-ci.org/srsudar/eg.svg?branch=master)](https://travis-ci.org/srsudar/eg)\n\n## Overview\n\n`eg` provides examples of common uses of command line tools.\n\nMan pages are great. How does `find` work, again? `man find` will tell you, but\nyou\u0027ll have to pore through all the flags and options just to figure out a\nbasic usage. And what about using `tar`? Even with the man pages `tar` is\n[famously inscrutable without the googling for examples](http://xkcd.com/1168/).\n\nNo more!\n\n`eg` will give you useful examples right at the command line. Think of it as a\ncompanion tool for `man`.\n\n\u003e `eg` comes from _exempli gratia_, and is pronounced like the letters: \"ee\ngee\".\n\n![eg Demo](./eg-demo.gif)\n\n\n## Installation\n\n### With `pip`\n\n```shell\npip install eg\n```\n\n### With `brew`\n\n```shell\nbrew install eg-examples\n```\n\n### Run from source\n\nClone the repo and create a symlink to `eg_exec.py`. Make sure the location you\nchoose for the symlink is on your path:\n\n\n```shell\ngit clone https://github.com/srsudar/eg ./\nln -s /absolute/path/to/eg-repo/eg_exec.py /usr/local/bin/eg\n```\n\n\u003e Note that the location of `eg_exec.py` changed in version 0.1.x in order to\nsupport Python 3 as well as 2. Old symlinks will print a message explaining the\nchange, but you\u0027ll have to update your links to point at the new location. Or\nyou can install with `pip` or `brew`.\n\n`eg` doesn\u0027t ship with a binary. Dependencies are very modest and should not\nrequire you to install anything (other than [pytest](https://docs.pytest.org) if\nyou want to run the tests).  If you find otherwise, open an issue.\n\n\n## Usage\n\n`eg \u003cprogram\u003e`\n\n`eg` takes an argument that is the name of a program for which it contains\nexamples.\n\n`eg find` will provide examples for the `find` command.\n\n`eg --list` will show all the commands for which `eg` has examples.\n\nThe complete usage statement, as shown by `eg --help`, is:\n\n```\neg [-h] [-v] [-f CONFIG_FILE] [-e EXAMPLES_DIR] [-c C",
  "github_repo": "srsudar/eg",
  "github_stars": 2025,
  "github_topics": [],
  "homepage": "https://github.com/srsudar/eg",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 12,
  "installs_365d": 277,
  "installs_90d": 58,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "eg-examples",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 8005,
  "rank_365d": 6511,
  "rank_90d": 6900,
  "raw_hash": "31f059142a44bc95",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/e/eg-examples.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.2.3",
  "versioned_formulae": [],
  "why_use_this": null
}