I wanted to create a .bashrc functionthat would simplify passing data to a write-protected file.function pipe {      sudo bash -c $1}Unfortunately the commandpipe echo something > /etc/importantfilestill shows me that permission is denied. How should I fix it?
Bash function for piping data into protected file
sudo;io redirection;function