Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove char from EOL

Status
Not open for further replies.

darfader

Programmer
Aug 6, 2003
38
GB

Hi,

here is a quickie for you ;) hopefully

I have a text file with 27997 lines similar to these, only longer


213.16;72.38;1/8/2003 00:00:00;;;;AR AUG 03;
213.16;72.38;2/8/2003 00:00:00;;;;AR AUG 03;
213.16;72.38;3/8/2003 00:00:00;;;;AR AUG 03;
213.16;72.38;4/8/2003 00:00:00;;;;AR AUG 03
213.16;72.38;5/8/2003 00:00:00;;;;AR AUG 03
213.16;72.38;6/8/2003 00:00:00;;;;AR AUG 03;


I am not sure how, but I have created this file with some lines ending in a semi-colon some not !

I would like all lines NOT to have a semi-colon ending,

can someone write me a super little one liner that I can run against this please,

I have transfered this text file to a SunOS 5.6 box with ksh,


tia,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top