# How to replace "®" "™"  "with Spaces in UNIX

**URL:** <https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151>\
**Category:** Shell Programming and Scripting\
**Created:** [July 8, 2010, 1:48pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151 "2010-07-08T13:48:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMeari](https://community.unix.com/letter_avatar/mmeari/32/6_22734026db12803ebb3e059622ac3534.png) [@MMeari](https://community.unix.com/u/MMeari)\
**Post date:** [July 8, 2010, 1:48pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151/1 "2010-07-08T13:48:00Z")

</div>

do U know how to replace the registered trademark "�" symbol or  
trade Mark "�" "with Spaces in UNIX

---

<div class="post-metadata">

**Author:** ![protocomm](https://community.unix.com/letter_avatar/protocomm/32/6_22734026db12803ebb3e059622ac3534.png) [@protocomm](https://community.unix.com/u/protocomm)\
**Post date:** [July 8, 2010, 2:10pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151/2 "2010-07-08T14:10:47Z")

</div>

```nohighlight
sed -e 's/\"�\"/ /g' -e 's/\"�\"/ /g' < file

```

---

<div class="post-metadata">

**Author:** ![MMeari](https://community.unix.com/letter_avatar/mmeari/32/6_22734026db12803ebb3e059622ac3534.png) [@MMeari](https://community.unix.com/u/MMeari)\
**Post date:** [July 8, 2010, 2:44pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151/3 "2010-07-08T14:44:10Z")

</div>

This is actually will not work because the data when using vi in UNIX it shows up as  
"View\342\204\242 Accessory" for "View� Accessory" in Windows.

---

<div class="post-metadata">

**Author:** ![ygemici](https://community.unix.com/letter_avatar/ygemici/32/6_22734026db12803ebb3e059622ac3534.png) [@ygemici](https://community.unix.com/u/ygemici)\
**Post date:** [July 8, 2010, 2:55pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151/4 "2010-07-08T14:55:22Z")

</div>

```nohighlight
# less trade
    �
   <99>

```

```nohighlight
# sed 's/[]/THIS IS TRADEMARK/;s/�/THIS IS REGISTRED TM/' trade
 THIS IS REGISTRED TM
THIS IS TRADEMARK
 
 

```

- --\>  
in this example for TM symbol equal to [] symbol and for this use to ALt+153 so this actually [Alt+153]

regards  
ygemici

---

<div class="post-metadata">

**Author:** ![MMeari](https://community.unix.com/letter_avatar/mmeari/32/6_22734026db12803ebb3e059622ac3534.png) [@MMeari](https://community.unix.com/u/MMeari)\
**Post date:** [July 8, 2010, 3:29pm UTC](https://community.unix.com/t/how-to-replace-with-spaces-in-unix/269151/5 "2010-07-08T15:29:14Z")

</div>

Actually for /�/ REGISTRED TM

this will work

```nohighlight
sed 's/\256/ /' < REGISTRED.1

```
