I'm trying to replace several symbols with spaces, and I thought tr
was the right command. So I tried
cat myfile | tr '_[]()-/' ' '
But I get the error
range-endpoints of ']-/' are in reverse collating sequence order
presumably because I can't have a minus sign in the input characters. Can I accomplish this using tr
?
tr
are you using? what OS? GNUtr
copes with this without a problem. Other versions oftr
may require some of the characters to be escaped. – cas Dec 02 '15 at 01:13tr -- '-_[]()/' ' '
– Petr Skocik Dec 02 '15 at 01:39