I've been smashing my head against the wall for 2 hours already but can't get it work right.
Here is what I have:
- String, say 133, with "\r" at the end, so it is "133\r".
- Integer, which I want to add to the number from the string above.
I tried sed to remove "\r" with sed from that string and just (( )) with hope that math expression will truncate "\r" but still no success. Please, point me to my mistakes!
Thanks in advance!
Below is the file I read my string from and let's pretend that I'm forced to read this all the file (Screenshot from Notepad++).

)2yntax error: invalid arithmetic operator (error token is "\r"