Article 4VV7Y help needed to understand sed command

help needed to understand sed command

by
Nitimohan
from LinuxQuestions.org on (#4VV7Y)
Hi all, I am trying to use following script and need help with understanding the SED command
Shell script is as follows:

Cat <<EOF > stratup.sh
#! /bin/bash
apt-get update
apt-get install -y nginx
service nginx start
sed -i --'s/nginx/Google Cloud Platform - '"\$HOSTNAME"'/' /var/www/html/index.nginx-debian.html
EOF

Please can someone tell me what the sed command is doing here.

Thanks,
Nitilatest?d=yIl2AUoC8zA latest?i=jplJsw19WK0:3MyLaf0lOrM:F7zBnMy latest?i=jplJsw19WK0:3MyLaf0lOrM:V_sGLiP latest?d=qj6IDK7rITs latest?i=jplJsw19WK0:3MyLaf0lOrM:gIN9vFwjplJsw19WK0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments