Files
Pokemon-Firered/hgrep.sh
T
luckytyphlosion d096f37d75 pokemon_summary_screen.c, part 3.
Also commit hgrep.sh for searching in non-c files.
2020-06-23 17:13:23 -04:00

11 lines
379 B
Bash

#!/bin/bash
# $1: phrase to find
if [ "$2" == "" ]; then
grep_flags="-wr"
else
grep_flags="$2"
fi
grep "$1" "$grep_flags" --include="*.h" --include="*.s" --include="*.inc" --include="*.txt" --exclude-dir=".git" --exclude-dir=".travis" --exclude-dir="build" --exclude-dir="common_syms" --exclude-dir="data" --exclude-dir="graphics" --exclude-dir="sound" --exclude-dir="tools"