bash-functions and greplace