I am attempting to remove all carriage returns from a file when the carriage return is not proceeded by [].
My attempt below failed when trying to create Myfile2, it returned the message input line too long. It works on a smaller file.
tr -d '\r\n' < D:\elite\custom\ebill\Micron\Myfile.txt > D:\elite\custom\ebill\Micron\Myfile2.txt
sed -e 's/\[]/\[]~/g' <D:\elite\custom\ebill\Micron\Myfile2.txt > D:\elite\custom\ebill\Micron\Myfile3.txt
tr -s ~ \13\ < D:\elite\custom\ebill\Micron\Myfile3.txt > D:\elite\custom\ebill\Micron\Myfile4.txt
My attempt below failed when trying to create Myfile2, it returned the message input line too long. It works on a smaller file.
tr -d '\r\n' < D:\elite\custom\ebill\Micron\Myfile.txt > D:\elite\custom\ebill\Micron\Myfile2.txt
sed -e 's/\[]/\[]~/g' <D:\elite\custom\ebill\Micron\Myfile2.txt > D:\elite\custom\ebill\Micron\Myfile3.txt
tr -s ~ \13\ < D:\elite\custom\ebill\Micron\Myfile3.txt > D:\elite\custom\ebill\Micron\Myfile4.txt