How do I use tr to substitute '--' string
bash, linux, shell
Solution
cat file | sed '/^--/d'
Problem
I have an output: ``` -- out1 -- out2 -- out3 ``` I want to get the output: ``` out1 out2 out3 ``` I thought of using: ``` tr '--' '' ``` but it doesn't recognize '--' to be the first string I want to substitute. How do I solve this?