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