https://vomong.com/you-can-use-both-input-and-output-redirection-with-the-same-centos-7-command
You can use both input and output redirection with the same centos 7 command.