Hello I am looking for assistance searching `/root/.ssh/authorized_keys` for a given public key (call it $pub\_key) and removing it. Want to do this in bash script.

What's the best way to accomplish this?