RE: ^M character
Posted in 2006
Depending on what unix you have there may be a dos2unix tool available (assuming that the files were originally dos files). Gerry "Colin Dawson" <cjd_1955@hotmail.com> Sent by: informix-list-bounces@iiug.org 09/08/2006 22:42 To informix-list@iiug.org cc Subject RE: ^M character Are you saying you have a number of ASCII files with this problem? tr -d '\\015' < "input file" > "output file" This can easily be put into a for loop Regards Colin There are 10 types of people in the world, those that understand binary and those that don't >From: "Prateek Jain" <prateekvjain@gmail.com> >To: informix-list@iiug.org >Subject: ^M character >Date: Fri, 4 Aug 2006 16:10:13 +0530 > >Hi guys, >I have got files in directory and all the files have got ^M is there any >way to replace all the ^M character in all the file >recursively. >-- >Regards, >Prateek Jain >_______________________________________________ >Informix-list mailing list >Informix-list@iiug.org >http://www.iiug.org/mailman/listinfo/informix-list _________________________________________________________________ Windows Live? Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb _______________________________________________ Informix-list mailing list Informix-list@iiug.org http://www.iiug.org/mailman/listinfo/informix-list