implementing grep.gura script