One of the common things occur in our source files is ^M character insertion at the end of the line.
Tricky thing is you can't find this in vim/grep if you search for it.
dos2unix command is the boon for these kind of operations.
dos2unix filename.sv
Else we can try like below..
sed -i 's/^M$//' filename.sv
Tricky thing is you can't find this in vim/grep if you search for it.
dos2unix command is the boon for these kind of operations.
dos2unix filename.sv
Else we can try like below..
sed -i 's/^M$//' filename.sv
No comments:
Post a Comment