#!/bin/bash

SEARCH="$1"

# in windows batch/powershell use findstr /?
# findstr /S "thesis" *.tex
find . -path ./src/old -prune -o \
    -path ./src/glew -prune -o \
    -path ./src/cjson -prune -o \
    -path ./scrap -prune -o \
    -type f -exec grep --color -Hi "$SEARCH" {} \;
    #-type f -exec grep -Hi "$SEARCH" {} \;
