I forgot to add that I had to run sed with sudo as I was getting permission denied errors without this
I forgot to add that I had to run sed with sudo as I was getting permission denied errors without this