Question: I have a Python script that merges CSV files together. Before I execute the script, I want to replace the a string in the file. I can do that using this sed command -

`sed 's/state/MI/' my_script.py`

How do I pass this to Python for execution? I have tried the below so far -

`python "$(sed 's/state_name/MI/' my_script.py)"` 

That doesn't work but when I try the same thing with PSQL it does -

`psql -d db -c "$(sed 's/state_name/MI/' summary.sql)"`

Answer: 
This is not a programming question. As such, it is off-topic here.

That said, a single *wildcard* Find/Replace is all you need, where:

```
Find = [\(\[\{\}\]\)]
Replace = ^&

```

and you set the replacement font attributes to whatever you want.

The above will replace all parentheses, braces and square brackets.
Here's a quick way,

I am showing in WPS Office you can follow the same in Ms Word

First hit `Ctrl + H` and Search for the Paranthesis or Brackets you want one at a time each.

Hover your cursor in the Replace with Section and Click on `Format >> Font`

You will see `Font color` section the in Replace Font Window

Select the color of your choice and click `Ok`

Click on `Replace All`

I hope this will help you out fixing your issues

[![enter image description here](https://i.stack.imgur.com/sUQsK.jpg)](https://i.stack.imgur.com/sUQsK.jpg)

[![enter image description here](https://i.stack.imgur.com/nrUCI.jpg)](https://i.stack.imgur.com/nrUCI.jpg)