Use grep and redirection (<) instead of cat