From owner-freebsd-questions@FreeBSD.ORG Sun May 20 16:08:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 871581065672 for ; Sun, 20 May 2012 16:08:11 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 41E218FC0C for ; Sun, 20 May 2012 16:08:10 +0000 (UTC) Received: by vbmv11 with SMTP id v11so4351909vbm.13 for ; Sun, 20 May 2012 09:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lQU21eCQi+rjUVZODTSmHmavHwjj2dVfwproULGYyz4=; b=ZCFGFd50r3Mz8C+m3c8makR0UkR5CJ6jofg+9EJqrveIpIUUMUV6Sw4ULMZIgENY9e 16BEzCLf6BcyYgO/9e6QatMTIkfMofQatFIfb4Lz9Y//hOQsYRxXXUY2yFzRSF9w2YyG X9OgRo3Dix8TbhoFEYkkonTy48YRISR7xbgwKUN1gFAXqvIyqXwJ61H2TZLkawWAllnV KUa+LtMllRNzY0Fm4FFuPl2/rpgIh40yEKCIjxG2aVPtJF+xibR+4nX3p/wrbNJ+K1hN lleQ1R+tLFbkt0FzytDS13h52MDk6P/hh7ZbM/dhq6vnnIzjFZDI2Rr/mVCYNrHwX5L1 tceA== MIME-Version: 1.0 Received: by 10.52.69.100 with SMTP id d4mr8800761vdu.9.1337530084581; Sun, 20 May 2012 09:08:04 -0700 (PDT) Received: by 10.52.172.103 with HTTP; Sun, 20 May 2012 09:08:04 -0700 (PDT) Date: Sun, 20 May 2012 12:08:04 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: eliminate character with sed 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: Sun, 20 May 2012 16:08:11 -0000 Hello list, I have a few php config files that have the windows delimiter character in them ('^M') that I would like to get rid of. I'm trying to use sed to do it, and for some reason I am not having any luck. Here's the line that I'm trying to use: #sed -i '.bak' 's/^M//g' config.php However when I have a look at the backup file that's been created with this command, it looks like there was no effect: