Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to replace a string "#security" with "security\n\tauthorization : enabled" in a file file.txt. Here \n represents a new line and \t for tab. How can I do this using sed command.
This is very basic. There's tons and tons of similar questions that has been asked , and there's tons and tons of resources for basic sed on google. Do your research. We are not free "do my homework" service
sed
on google. Do your research. We are not free "do my homework" service