after changing file from unix to dos it is having empty lines..how to handle this
Posted
by
user2814717
on Super User
See other posts from Super User
or by user2814717
Published on 2013-09-26T10:11:15Z
Indexed on
2013/10/20
15:58 UTC
Read the original article
Hit count: 255
unix
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
© Super User or respective owner