From owner-freebsd-questions@FreeBSD.ORG Fri May 5 17:40:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4235216A401 for ; Fri, 5 May 2006 17:40:18 +0000 (UTC) (envelope-from darom@filmkern.com) Received: from mail.filmkern.com (mail.filmkern.com [206.169.45.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFDC943D46 for ; Fri, 5 May 2006 17:40:17 +0000 (GMT) (envelope-from darom@filmkern.com) Received: from localhost (localhost [127.0.0.1]) by mail.filmkern.com (Postfix) with ESMTP id 8CB6529E68; Fri, 5 May 2006 10:40:17 -0700 (PDT) Received: from mail.filmkern.com ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31479-08; Fri, 5 May 2006 10:40:17 -0700 (PDT) Received: from mail.filmkern.com (localhost [127.0.0.1]) by mail.filmkern.com (Postfix) with ESMTP id 3FEC32931A; Fri, 5 May 2006 10:40:17 -0700 (PDT) Received: from 206.169.45.183 (SquirrelMail authenticated user darom@filmkern.com) by mail.filmkern.com with HTTP; Fri, 5 May 2006 10:40:17 -0700 (PDT) Message-ID: <31230.206.169.45.183.1146850817.squirrel@mail.filmkern.com> Date: Fri, 5 May 2006 10:40:17 -0700 (PDT) From: "Denis R." To: magalhj@yahoo.com.br User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at filmkern.com Cc: freebsd-questions@freebsd.org Subject: re: Substitute command on vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 17:40:18 -0000 Try #dos2unix file_name >>>>>>>>>> Hi list, I need to substitute a lot of characters ^M (ctrl+M) at the end of each line in my file. The command :%s/^M//g insn't have success. How can i do it ? Thanks, Aguiar