placed grep-commands in external bash scripts