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?
cat file | sed '/^--/d'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With