From owner-freebsd-questions@FreeBSD.ORG Wed Sep 29 10:07:27 2010 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 85CF41065679 for ; Wed, 29 Sep 2010 10:07:27 +0000 (UTC) (envelope-from lhmwzy@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 44B378FC12 for ; Wed, 29 Sep 2010 10:07:26 +0000 (UTC) Received: by qyk7 with SMTP id 7so1032362qyk.13 for ; Wed, 29 Sep 2010 03:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=YLfDoYOx2H/KZSEEH3vf0vUn2yp1jvVEl3L0ok6e3WA=; b=aQjopcm3nPY7ZiimV2Z/yECevH/e1/3kNz57/4UYBBQS+AFLTf9dBpHs+oPn8avG4n B2fBtA92toT8c4waVn2xCV8c/NQiImD8FJNyrako64UsVXbwbeacZ945Rn1yIxFg4wJQ +8+/fyySVMyR8Eh8WZuN3JI+am7LCgSI2+8uI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XXH/Q3gRQxv2MKRRnWxCpykr0wghGfpSGLaaY0GXJOmenZrHnkbZnRKIOkGZ5lTxCu CftrsmF8oDJ1hWnHQD5FiQW38VExiRcJ791+fH19bWP88fPXWs3YTR8IouHXuLht+J8h Tb4+ETXpQGPGPYdMArCVFiN4o90P6aYU/eA+c= MIME-Version: 1.0 Received: by 10.229.184.68 with SMTP id cj4mr1014097qcb.48.1285753283700; Wed, 29 Sep 2010 02:41:23 -0700 (PDT) Received: by 10.229.95.81 with HTTP; Wed, 29 Sep 2010 02:41:23 -0700 (PDT) Date: Wed, 29 Sep 2010 17:41:23 +0800 Message-ID: From: lhmwzy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: sed problem 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: Wed, 29 Sep 2010 10:07:27 -0000 I have a txt file named test: USER Added by ftpadmin GENERAL 0,0 120 204800 0 LOGINS 1 0 -1 -1 TIMEFRAME 0 0 FLAGS 3 TAGLINE lanshu4385 DIR / ADDED 1284812614 ftpadmin EXPIRES 0 CREDITS 15000 RATIO 0 ALLUP 0 0 0 ALLDN 0 0 0 WKUP 0 0 0 WKDN 0 0 0 DAYUP 0 0 0 DAYDN 0 0 0 MONTHUP 0 0 0 MONTHDN 0 0 0 NUKE 0 0 0 TIME 0 1284812614 0 0 GROUP Teest 0 GROUP eest 0 GROUP dTeest 0 GROUP tTeest 0 GROUP Test 0 IP *@* when I use the follow command: #sed -e '/GROUP/{/Test/}! d' test then output error: sed: 1: "/GROUP/{/Test/}! d ": command } expects up to 0 address(es), found 1 But this command under linux is OK,how can I do?