If you trust this link, click it to continue.
https://www.linuxtoday.com/blog/how-to-use-sed-and-awk-to-modify-config-files-in-linux/