swift 12/06/29 16:03:35 Modified: l-sed2.xml Log: Fix bug #397687 - Spelling corrections in article, thanks to Christophe Lefebvre for the patch
Revision Changes Path 1.8 xml/htdocs/doc/en/articles/l-sed2.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml?rev=1.8&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml?rev=1.8&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml?r1=1.7&r2=1.8 Index: l-sed2.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- l-sed2.xml 4 Sep 2011 17:53:41 -0000 1.7 +++ l-sed2.xml 29 Jun 2012 16:03:34 -0000 1.8 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml,v 1.7 2011/09/04 17:53:41 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/l-sed2.xml,v 1.8 2012/06/29 16:03:34 swift Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide disclaimer="articles"> @@ -21,7 +21,7 @@ version of the original article, and contains various improvements made by the Gentoo Linux Documentation team --> -<version>1.2</version> +<version>2</version> <date>2005-10-09</date> <chapter> @@ -49,7 +49,7 @@ follows: </p> -<pre caption="Replacing all the occurences on every line"> +<pre caption="Replacing all the occurrences on every line"> $ <i>sed -e 's/foo/bar/g' myfile.txt</i> </pre> @@ -95,7 +95,7 @@ <path>/usr/local</path> with <path>/usr</path>: </p> -<pre caption="Replacing all the occurences of one string with another one"> +<pre caption="Replacing all the occurrences of one string with another one"> $ <i>sed -e 's:/usr/local:/usr:g' mylist.txt</i> </pre> @@ -115,7 +115,7 @@ Up until now, we've only performed simple string substitution. While this is handy, we can also match a regular expression. For example, the following sed command will match a phrase beginning with '<' and ending with '>', and -containing any number of characters inbetween. This phrase will be deleted +containing any number of characters in-between. This phrase will be deleted (replaced with an empty string): </p> @@ -188,7 +188,7 @@ last position, as follows: </p> -<pre caption="Specifying a rangle of characters"> +<pre caption="Specifying a range of characters"> '[a-x]*' </pre> @@ -257,7 +257,7 @@ <p> It's advantageous to use character classes whenever possible, because they adapt -better to nonEnglish speaking locales (including accented characters when +better to non-English speaking locales (including accented characters when necessary, etc.). </p>
