From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 13:37:55 2003 Return-Path: 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 D43FD37B401 for ; Mon, 30 Jun 2003 13:37:55 -0700 (PDT) Received: from webserver2.rtl.org (rtl-3.i2k.com [63.94.12.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9D0443FEC for ; Mon, 30 Jun 2003 13:37:54 -0700 (PDT) (envelope-from jstewart@rtl.org) Received: from mis3c.rtl.lan (rtl-2.i2k.com [63.94.12.206]) by webserver2.rtl.org (8.11.6/8.11.6) with ESMTP id h5UKYXt10326 for ; Mon, 30 Jun 2003 16:34:34 -0400 From: Jason Stewart To: freebsd-questions@freebsd.org In-Reply-To: <3F0092E5.13879.51ADA4E@localhost> References: <3F0092E5.13879.51ADA4E@localhost> Content-Type: text/plain Organization: Right to Life of Michigan Message-Id: <1057005399.1030.44.camel@mis3c.rtl.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 30 Jun 2003 16:36:42 -0400 Content-Transfer-Encoding: 7bit Subject: Re: Seperate fields in File X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 20:37:56 -0000 If you know how to write the script, then you would also know how to put it in a file too... Smells like a homework assignment to me. A google search turned up this: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=468 On Mon, 2003-06-30 at 13:43, Moritz Fromwald wrote: > Hello all, > I have a text file, which contains several data sets, separated > by a particular string ("-------.*=.*--") > I need to write a script, which processes each of these data sets > Can anyone push me in the right direction? > > Is it possible to simplify the following command in several lines > run=`cat HI*.PM | grep -e '0,0' | grep 'Massenmails' | awk -F ',' > {'print $3'} | awk -F ':' {'print $3'} | awk -F '\"' {'print > $1'}` > > TIA & greez > > moritz fromwald > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"