bash how to ignore new line from string code example Example: bash remove newline from string echo "${string}"|tr '\n' ' '