From owner-freebsd-questions Sat May 4 22: 0:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web21502.mail.yahoo.com (web21502.mail.yahoo.com [66.163.169.13]) by hub.freebsd.org (Postfix) with SMTP id D82B937B400 for ; Sat, 4 May 2002 22:00:51 -0700 (PDT) Message-ID: <20020505050051.60490.qmail@web21502.mail.yahoo.com> Received: from [66.3.230.240] by web21502.mail.yahoo.com via HTTP; Sat, 04 May 2002 22:00:51 PDT Date: Sat, 4 May 2002 22:00:51 -0700 (PDT) From: Jeff Mitchell Subject: Re: such a pain To: shubhamr@malkauns.nsc.com, "questions@FreeBSD.ORG" In-Reply-To: <3CD4B6D2.9858CAE0@malkauns.nsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- shubhamr 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