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