SEARCH AND REPLACE USING SED

commandline session

$ 4.2.36 13 513---> cat math.html
<html>
<body>
<msup>
<mfenced>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mfenced>
<mn>2</mn>
</msup>
</body>
</html>
$ 4.2.36 14 514---> $ sed "s/html/HTML/g" math.html > math-new.html
bash: $: command not found
$ 4.2.36 15 515---> sed "s/html/HTML/g" math.html > math-new.html
$ 4.2.36 16 516---> cat math-new.html
<HTML>
<body>
<msup>
<mfenced>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mfenced>
<mn>2</mn>
</msup>
</body>
</HTML>
$ 4.2.36 17 517--->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s