Bash doesn't have chomp command but you can use tr to get rid of \n \r (and other) characters.
AquilaX’s development blog
code and so on…
chomp for bash
-
http://www.blogvista.it realtebo
-
flipouk
-
Ed Greenberg
-
Ganneff