From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 00:41:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF06F106567B for ; Tue, 26 Aug 2008 00:41:33 +0000 (UTC) (envelope-from anmichel@gmail.com) Received: from mail-gx0-f58.google.com (mail-gx0-f58.google.com [209.85.217.58]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC028FC18 for ; Tue, 26 Aug 2008 00:41:33 +0000 (UTC) (envelope-from anmichel@gmail.com) Received: by gxk18 with SMTP id 18so21808515gxk.11 for ; Mon, 25 Aug 2008 17:41:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.41.4 with SMTP id o4mr311494ano.29.1219710675912; Mon, 25 Aug 2008 17:31:15 -0700 (PDT) Date: Mon, 25 Aug 2008 17:31:15 -0700 (PDT) X-IP: 201.211.81.53 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Message-ID: <41baaeae-0c1d-4a73-9540-8049b837261c@l64g2000hse.googlegroups.com> From: siran To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 26 Aug 2008 00:51:37 +0000 Subject: sed html tags 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: Tue, 26 Aug 2008 00:41:33 -0000 Hi, I have the string 111 2222 3333 And i wish to use sed to strip *only* the "" tag and its contents... is this possible ? I'm trying this expression, but it doesn't work... sed 's/\)]+<\/span>//g' file is there anything like it ? I would like to obtain 2222 I hope someone can help, thank you, siran