From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 13:44:29 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 76FD316A4CE for ; Sat, 17 Jan 2004 13:44:29 -0800 (PST) Received: from smtpgate.email.arizona.edu (deagol.email.Arizona.EDU [128.196.133.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C83B43D39 for ; Sat, 17 Jan 2004 13:44:28 -0800 (PST) (envelope-from freebsd@binprod.com) Received: from binprod.com (ip68-0-147-177.tc.ph.cox.net [68.0.147.177]) by smtpgate.email.arizona.edu (Postfix) with ESMTP id 8F0EC2860AB; Sat, 17 Jan 2004 14:44:20 -0700 (MST) Message-ID: <4009ACAD.7020302@binprod.com> Date: Sat, 17 Jan 2004 14:44:13 -0700 From: Eric Anderson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brett Glass References: <6.0.0.22.2.20040116192550.05046df8@localhost> In-Reply-To: <6.0.0.22.2.20040116192550.05046df8@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at email.arizona.edu 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:44:29 -0000 > 1) Delete the Nth line from a text file? > 2) Insert a specified line in a file after the Nth line, leaving the > rest of the text the same? > 3) Delete the first line containing a particular string? > 4) Insert a specified line after the first line containing a > particular string, leaving the rest of the file the same? 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.