From owner-freebsd-questions Mon Jul 29 14: 1:58 2002 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 B3B5937B400 for ; Mon, 29 Jul 2002 14:01:54 -0700 (PDT) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id B176243E3B for ; Mon, 29 Jul 2002 14:01:53 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id g6TL1idq071222; Mon, 29 Jul 2002 14:01:44 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id g6TL1io6071219; Mon, 29 Jul 2002 14:01:44 -0700 (PDT) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Mon, 29 Jul 2002 14:01:44 -0700 (PDT) From: Philip Hallstrom To: "Christopher J. Umina" Cc: FreeBSD Question Mailing List Subject: Re: matching a string In-Reply-To: <20020729165654.R55766-100000@216-164-225-145.c3-0.wth-ubr2.sbo-wth.ma.cable.rcn.com> Message-ID: <20020729140053.O70037-100000@cypress.adhesivemedia.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 Something like... sed -e 's/^; \[//' -e 's/].*//' logfile should work... I'm sure there are lots of other ways to do it as well. On Mon, 29 Jul 2002, Christopher J. Umina wrote: > Hello, > > I'm writing some code to pull screen names out of a log, but I > can't seem to figure out the regular expressions to get it done. If you > want to see the log file it's at: > http://216.164.225.145:81/~uminac/mp3/logs/master > What I've been looking to make the script do is just list the > screen names without the brackets, that's all. For instance: > > kelzy16 > cc skillet > ccgirl436 > ccgirl436 > meikman99 > bctictac8 > > If anybody can help me out in this I'd appreciate it. > > Thank you, > Christopher J. Umina > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message