From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 13:50:25 2004 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 810A916A4CE for ; Sat, 17 Jan 2004 13:50:25 -0800 (PST) Received: from lariat.org (lariat.org [63.229.157.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12FF243D1D for ; Sat, 17 Jan 2004 13:50:24 -0800 (PST) (envelope-from brett@lariat.org) Received: from runaround.lariat.org (IDENT:ppp1000.lariat.org@lariat.org [63.229.157.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id OAA27214; Sat, 17 Jan 2004 14:50:19 -0700 (MST) X-message-flag: Warning! Use of Microsoft Outlook renders your system susceptible to Internet worms. Message-Id: <6.0.0.22.2.20040117144800.050c2b28@localhost> X-Sender: brett@localhost (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 17 Jan 2004 14:50:18 -0700 To: Eric Anderson From: Brett Glass In-Reply-To: <4009ACAD.7020302@binprod.com> References: <6.0.0.22.2.20040116192550.05046df8@localhost> <4009ACAD.7020302@binprod.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: questions@freebsd.org Subject: Re: General UNIX puzzle 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: Sat, 17 Jan 2004 21:50:25 -0000 At 02:44 PM 1/17/2004, Eric Anderson wrote: >You should do your own Comp Sci homework. This looks like (especially considering the time of th year) the begining of a Unix Basics course. Nope; I'm quite experienced with UNIX. However, I posted the question because I wanted to see what the most efficient and clever answers would be. For example, while I received answers involving languages, such as sed and awk, the simplest answer to at least one of them seems to use grep. --Brett