comment specific line using sed command July 12, 2019July 18, 2019 specktator Comment specific line using sed command can be used to configuration files … comment specific line using sed Shell sed -i '123 s/^/#/' filename 1 sed -i '123 s/^/#/' filename Thanks for reading! If you enjoyed this article, share it!! It makes me happier.Click to share on Reddit (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Pocket (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on Skype (Opens in new window)Click to share on LinkedIn (Opens in new window)