0
sed "s/[][,']//g"

I used this, but then I have empty lines getting returned. I know that you can use:

sed '/^[[:space:]]*$/d'

Delete empty lines using sed

However, trying sed "s/[][[:space:]][,']//g" didn't work as well as other stuff I have tried.

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
Sayaman
  • 1,145
  • 4
  • 14
  • 35

1 Answers1

0

sed is a scripting language; combine the two commands to get the effect you seek.

sed "s/[][,']//g;"'/^[[:space:]]*$/d'
tripleee
  • 175,061
  • 34
  • 275
  • 318