There is no need to use a subshell for redirection; just redirect the output from the "cat" command directly.