Using shell redirection rather than cat