Trying to use Linux bash script to write to a file but unable to write the below line because of the extra " and ' symbols in the line. Is there a better way to write a file with linux bash script or a way that will work?
echo "add_header Content-Security-Policy "default-src 'self' https://*.jsdelivr.n$ >> $file
I'm a noob to bash scripting and appreciate the help.