Let say I have the following phone number in a .txt file
I need three sed commands to change this number.
- Need the number in-between parentheses (can be any number) to replace with 800
- next I need to remove the parentheses.
- For the last part I need a dash to be added in the white space between the area code and the rest of the number.
sed -e 's/([^()]*)//g' so far and it removes the parentheses and everything inside.