/action {%1} {/if {@Len($1)>0} {/if {@StrStr(@Lower($1),$GrepString) > -1} {/itemadd {GrepResults} {$1}}}} {Grep}
/action {<%2hp %3m %4>} {/disablegag {%0};/showme {@AnsiBold()@ForeBlue()Search results:@Chr(10)};/if {@GetCount(GrepResults) > 0} {/loop {1,@GetCount(GrepResults)} {/showme {@Chr(10)@AnsiBold()@ForeCyan()@GetItem(GrepResults,$LoopCount)}}} {/showme {@Chr(10)@AnsiBold()@ForeBlue()No results found.}};/showme {@Chr(10)};/clearlist {GrepResults};/disableaction {%1};/disableaction {<MedL%2nk>};/disableaction {<%2hp %3m %4>}} {Grep}
/action {<MedL%2nk>} {/disablegag {%0};/showme {@AnsiBold()@ForeBlue()Search results:@Chr(10)};/if {@GetCount(GrepResults) > 0} {/loop {1,@GetCount(GrepResults)} {/showme {@Chr(10)@AnsiBold()@ForeCyan()@GetItem(GrepResults,$LoopCount)}}} {/showme {@Chr(10)@AnsiBold()@ForeBlue()No results found.}};/showme {@Chr(10)};/clearlist {GrepResults};/disableaction {%1};/disableaction {<MedL%2nk>};/disableaction {<%2hp %3m %4>}} {Grep}
/alias {grep %0} {/if {@Connected()=1} {/if {@Len($0) > 0} {/if {@Len(@Word($0,2)) > 0} {/showme {@Chr(10)@Chr(10)@AnsiBold()@ForeBlue()Searching for @ForeCyan()@Word($0,1) @ForeBlue()in @ForeCyan()@Right($0,@Math(@Len($0)-@Len(@Word($0,1))-1))@ForeBlue().@Chr(10)};/var {GrepString} {@Word($0,1)} {Grep};/enableaction {%1};/enableaction {<MedL%2nk>};/enableaction {<%2hp %3m %4>};page -none @Right($0,@Math(@Len($0)-@Len(@Word($0,1))-1));/enablegag {%0}} {/showme {@Chr(10)@Chr(10)@AnsiBold()@ForeBlue()Syntax: grep <keyword> <command>@Chr(10)}}} {/showme {@Chr(10)@Chr(10)@AnsiBold()@ForeBlue()Syntax: grep <keyword> <command>@Chr(10)}}} {/showme {@Chr(10)@Chr(10)@AnsiBold()@ForeBlue()You must be connected to use this command.@Chr(10)}}} {Grep}
/empty {GrepString} {Grep}
/gag {%0} {Grep}
/listadd {GrepResults} {Grep}
/autoexec {/disablegag {%0};/disableaction {%1};/disableaction {<%2hp %3m %4>};/disableaction {<MedL%2nk>}}