Difference between revisions of "Sed"

From Linuxintro
imported>ThorstenStaerk
(New page: sed: Replace strings sed -e "s/cgi?\([0-9][0-9]*\)/cgi@\1.html/g" myfile.html > index.html)
 
imported>ThorstenStaerk
Line 1: Line 1:
 
sed: Replace strings
 
sed: Replace strings
 
  sed -e "s/cgi?\([0-9][0-9]*\)/cgi@\1.html/g" myfile.html > index.html
 
  sed -e "s/cgi?\([0-9][0-9]*\)/cgi@\1.html/g" myfile.html > index.html
 +
 +
= See also =
 +
* [[piping]]
 +
* [[grep]]
 +
* [[regex]]

Revision as of 09:51, 28 April 2009

sed: Replace strings

sed -e "s/cgi?\([0-9][0-9]*\)/cgi@\1.html/g" myfile.html > index.html

See also