Date: Sat, 4 May 2002 22:00:51 -0700 (PDT) From: Jeff Mitchell <jeff4492@yahoo.com> To: shubhamr@malkauns.nsc.com, "questions@FreeBSD.ORG" <questions@freebsd.org> Subject: Re: such a pain Message-ID: <20020505050051.60490.qmail@web21502.mail.yahoo.com> In-Reply-To: <3CD4B6D2.9858CAE0@malkauns.nsc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- shubhamr <shubhamr@malkauns.nsc.com> wrote: > Hi, > I have some .c files which I got from my windows machine.But when I > read > it on BSD,for every line end ^M shows up,whereever there is a > newline(carriage return).It is tedious to remove them manually.I have > no > X installed on my BSD.Can anyone suggest how to get rid of them? > > shubha > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message perl -p -i -e 's(\015\012)(\012)' file1 file2 file3 ... Regards, Jeff __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020505050051.60490.qmail>