GithubHelp home page GithubHelp logo

grep's Introduction

grep

Creates a grep command for aardwolf, similar to the unix grep.

Say you have a bag full of equipment and you want to look for axes. You could examine bag

     (K) (Magic) (Glow) (Hum) the Amulet of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Wings of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Helm of True Sight (2)
     (K) (Magic) (Glow) (Hum) Aardwolf Gloves of Dexterity (5)
( 2) (K) (Magic) (Glow) (Hum) Axe of Aardwolf (80)
     (K) (Magic) (Glow) (Hum) Aardwolf Breastplate of Magic Resistance (1)
     (K) (Magic) (Glow) (Hum) the Shield of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Ring of Regeneration (32)
     (K) (Magic) (Glow) (Hum) Aardwolf Bracers of Iron Grip (60)
     (K) (Magic) (Glow) (Hum) Axe of Aardwolf (151)
     (K) (Magic) (Glow) (Hum) Aardwolf Ring of Invisibility (5)
     (K) (Magic) (Glow) (Hum) Aardwolf Aura of Sanctuary (1)
     (K) (Magic) (Glow) (Hum) Dagger of Aardwolf (140)
     (K) (Magic) (Glow) (Hum) Aardwolf Breastplate of Magic Resistance (21)
     (K) (Magic) (Glow) (Hum) Aardwolf Helm of True Sight (7)
     (K) (Magic) (Glow) (Hum) Axe of Aardwolf (20)
     (K) (Magic) (Glow) (Hum) the Shield of Aardwolf (100)
     (K) (Magic) (Glow) (Hum) Dagger of Aardwolf (201)

Ugh, too much stuff. Manuually reading is annoying. Let's try that again with grep examine bag | grep axe

( 2) (K) (Magic) (Glow) (Hum) Axe of Aardwolf (80)
     (K) (Magic) (Glow) (Hum) Axe of Aardwolf (151)
     (K) (Magic) (Glow) (Hum) Axe of Aardwolf (20)

Much better!

It also works with regular expressions: examine bag | grep \(\d{1}\)

     (K) (Magic) (Glow) (Hum) the Amulet of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Wings of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Helm of True Sight (2)
     (K) (Magic) (Glow) (Hum) Aardwolf Gloves of Dexterity (5)
     (K) (Magic) (Glow) (Hum) Aardwolf Breastplate of Magic Resistance (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Bracers of Iron Grip (1)
     (K) (Magic) (Glow) (Hum) the Shield of Aardwolf (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Ring of Invisibility (5)
     (K) (Magic) (Glow) (Hum) Aardwolf Aura of Sanctuary (1)
     (K) (Magic) (Glow) (Hum) Aardwolf Helm of True Sight (7)

grep's People

Contributors

aardnaricain avatar

Watchers

 avatar

Forkers

l33t-xyz-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.