I pull some data from the database, and one of the rows that I return is on the same row and contains multiple instances of the row \n. These are not newlines; they literally represent a string \n, that is, a backslash + en or hex 5C 6E.
I tried using sed and tr to remove them, but they do not seem to recognize the string and do not affect this variable at all. This was a difficult problem to search on google, since all the results that I am returning about relate to how to remove newline characters from strings that I don't need.
How to remove these lines from my variable in bash?
Sample data:
\n\nCreate a URL where the client can point their web browser to. This URL should test the following IP addresses and ports for connectivity.
An example of a failed command:
echo "$someString" | tr '\\n' ''
: Solaris 10
- python