after changing file from unix to dos it is having empty lines..how to handle this
- by user2814717
After converting file using **unix2dos** command it is having some empty lines. Please help me. How to handle this?
I tried to delete empty lines as follow, but couldn't work.
$ sed '/^$/d' /tmp/data.txt
Hey following examples also didn't work. Pl help
This is source data before using unix2dos.
ID NAME DATE
1 BALA 09/23/2013
2 KRISHH 09/24/2013
3 billy 09/24/2013
After using unix2dos it is coming as
ID NAME DATE
1 BALA 09/23/2013
2 KRISHH 09/24/2013
3 billy 09/24/2013
first and second record there is an empty line coming up..may be in bewteen data also
Thanks