From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 04:36:49 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 2494816A4CE for ; Sun, 18 Jan 2004 04:36:49 -0800 (PST) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBB6443D31 for ; Sun, 18 Jan 2004 04:36:47 -0800 (PST) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 1AiCAX-0004Cg-00; Sun, 18 Jan 2004 23:06:45 +1030 Message-ID: <000601c3ddbf$bbbbb980$a4b826cb@goo> From: "Rob" To: , References: <200401172159.37521.ecrist@adtechintegrated.com> Date: Sun, 18 Jan 2004 23:06:43 +1030 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Text parsing? 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: Sun, 18 Jan 2004 12:36:49 -0000 Eric F Crist asked on Sun Jan 18, 2004: > For what purposes will I find I need to use all these tools you write about? > I'm talking about awk, ed, ex, etc. I haven't found the need to do so, yet, > but I'd like to possibly learn this stuff before I really do need it. Logfiles and config files are usually text, and a standard set of text processing tools exist. This leads to the Unix tradition of sticking little things together. For example, I'm doing a 'make release' - there's a lot of repeated output, so it's hard to see how far it's gone if it crashes. So to save the output, I run it under the script(1) command. Then on another tty, I run tail -f /var/tmp/script | grep '^[>+]' which shows the main headings of the build process. After a while, many admin tasks start to look like text processing problems.