GREP Package
Jump to navigation
Jump to search
Game | Non-mud specific |
By | Demonnic |
Download | Github |
Dependencies | Mudlet 4.17 |
Description
This alias (and the functions which support it) tries to emulate the `grep` command from *NIX systems, in that it will search your buffer for all the lines which match a pattern and display them on the screen for you.
Usage
grep <regex pattern to search for> <optional page of the results to display>
- This alias will search the main console buffer for all lines which match the pattern provided. It reads the buffer after it has been word wrapped, which means that it evaluates each line as it appears separately, rather than how it came in from the game originally.
See also: Mudlet Forums
Examples
Examples:
grep \d+ gold coins
- searches the buffer for any line with a number of gold coins on it and prints the outcome.
grep (?i)goblin 2
- searches the buffer for goblin, ignoring case sensitivity (will match goblin or GoBLin), and print page 2 if there's more than 1 page.
See also: Screenshot