restore g
move g to r
bash tips
better grep excludes