1

Need help regarding formatting(comm -23 command)

view story
linux-howto

http://www.unix.com – Hello all , I have two files a.txt and b.txt which have same content . They contain data that is fetched from database through a java program. When I delete a line in a.txt and run the below command comm -13 a.txt b.txt I am not getting the expected result i.e. the line i deleted from a.txt. Instead i am getting the two lines i.e. the line I deleted and the line following it. I am guessing that there is some character in unix at the end of each line that I am not deleting, because of it comm -13 command is failing . Can you please tell how I can remove such special characters ? (HowTos)