From owner-freebsd-questions Fri Mar 12 6:32:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hera.webcom.com (hera.webcom.com [209.1.28.42]) by hub.freebsd.org (Postfix) with ESMTP id 3094E14BD3 for ; Fri, 12 Mar 1999 06:32:57 -0800 (PST) (envelope-from graeme@echidna.com) Received: from eresh.webcom.com (eresh.webcom.com [209.1.28.49]) by hera.webcom.com (8.9.1/8.9.1) with SMTP id OAA02235 for ; Fri, 12 Mar 1999 14:33:57 -0800 Received: from [204.143.69.37] by inanna.webcom.com (WebCom SMTP 1.2.1) with SMTP id 25607372; Fri Mar 12 06:29 PST 1999 Message-Id: <36E94F09.C8A0DA32@echidna.com> Date: Fri, 12 Mar 1999 09:29:45 -0800 From: Graeme Tait Organization: Echidna X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en Mime-Version: 1.0 To: "questions@FreeBSD.ORG" Subject: Use of pipe with gzip | more Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was examining a large gzipped text file (about 6MB zipped) using $ gzip -cd file.gz | more and used "/[text]" to attempt to find a line that didn't exist. As indicated by top, "more" consumed all available CPU for a very long time, its PRI value rising to over 100 before it finally reported "Pattern not found". The elapsed time was a couple of orders of magnitude more than if I had unzipped the file first, and then run "more" on the unzipped file. However, some files I do this on are so large that unzipping first places a burden on available file space. Is this a legitimate use of a pipe? In other situations, piping output from "gzip -cd" through other commands to "more", I've encountered quasi-infinite waits, and ended up aborting the command. -- Graeme Tait - Echidna To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message