I want to do the following:
$ echo "secrets" > protected_file
But the the problem is, I don't have file permissions for "protected_file", so I try the following:
$ sudo echo "secrets" > protected_file
But that doesn't work either because only the "echo" portion of the command is executed under sudo.
What's the correct way to do this?