I have received a csv file from a ftp server which I am ingesting into a table. While ingesting the file I am receiving the error "File was a truncated file"
The actual reason is the data in a file contains $ and ^M$ in end of the line. e.g :
ACT_RUN_TM, PROG_RUN_TM, US_HE_DT*^M$* "CONFIRMED","","3600"$
How can I remove these $ and ^M$ from end of the line using linux command.