In my output file i am getting control m character and also the line feeds at different places and with different combinations, the content of the file is supposed to be in a single line but if there is a line feed in between then from there onwards it's going into new line.
I tried removing the ^M char but this is not working and line feed is creating an issue. : tr -d "^M" < "$taxt_file" > a.txt