Re: replace string
Davide Brini <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 26 Sep 2013 10:55:33 +0530, Lis Maria <[email protected]> wrote: > I have a file and in that a line as below > > command:mkdir -type -type_tag -yes -noadmin > > I want to replace with some other string. > > How can i do this? tried couple of sed command. but not able to get > through. What about sed 's/command:mkdir -type -type_tag -yes -noadmin/some other string/' file or sed '/command:mkdir -type -type_tag -yes -noadmin/ c\ some other string' file -- D.