weirdgrep

Weirdgrep is a tool that allows you to search through huge files (initially designed to look through pages of code).

Usage

```bash ❯ weirdgrep -h weirdgrep 1.0.0 Vaelio archelio@protonmail.com Regex parser to search through files.

USAGE: weirdgrep [OPTIONS]

ARGS: Regex to apply End Tag for the match File to parse

OPTIONS: -h, --help Print help information -n, --numbers Print line numbers for each printed lines starting from 0 -V, --version Print version information -w Switch to scope mode, and use this regex as a search and (regex, endtag) as boundaries of the search afterwards ```

By default the tool will search for \

It is usefull when you want to extract for exemple every functions of a code page where the signature matches \

You can further improve the granularity by adding the -w \

Example

```bash $ weirdgrep 'Function<.+' 'EndFunction' -w '.+/invite/.+' instructions.hasm -n 1660535: Function28016(1 params, 16 registers, 0 symbols): 1660536: LoadThisNS Reg8:1 [REDACTED] 1660577: Add Reg8:4, Reg8:2, Reg8:4 1660578: LoadConstString Reg8:2, UInt16:6648 1660578: ; Oper[1]: String(6648) '/invite/' 1660579: [REDACTED] 1660611: EndFunction

$ wc -l instructions.hasm 1750287 instructions.hasm

```