Assume I have this string:
Your name is\nBobby\tBlahck\r\r
how can I remove the characters "\n, \t, \r". The string literally looks like that, it does not contain tabs or new lines. They are only characters.
When I try
echo "Your name is\nBobby\tBlahck\r\r" | tr -d '\t'
tr assumes I am trying to remove tabs, so it doesn't work and prints examtly the same string. Any ideas about how to remove them? I have the same problem with sed.
Thanks
or
-E
is on OS X; replace it with-r
otherwise.