From owner-freebsd-questions@FreeBSD.ORG Tue Feb 27 04:31:08 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6AFBB16A401 for ; Tue, 27 Feb 2007 04:31:08 +0000 (UTC) (envelope-from lwwoody@comcast.net) Received: from rwcrmhc15.comcast.net (rwcrmhc15.comcast.net [216.148.227.155]) by mx1.freebsd.org (Postfix) with ESMTP id 5887913C47E for ; Tue, 27 Feb 2007 04:31:08 +0000 (UTC) (envelope-from lwwoody@comcast.net) Received: from [10.0.1.200] (c-68-84-159-153.hsd1.nm.comcast.net[68.84.159.153]) by comcast.net (rwcrmhc15) with SMTP id <20070227041611m1500c6qvte>; Tue, 27 Feb 2007 04:16:21 +0000 In-Reply-To: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> References: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Message-Id: <440A76B3-1AEB-49EE-9FC4-90C63616C169@comcast.net> From: "Larry W. Wood" Date: Mon, 26 Feb 2007 21:16:09 -0700 To: New Mexico Linux Users Group Mail List X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org, nmosug-l@mailman.swcp.com, linuxusersgroup@googlegroups.com Subject: Re: [NMLUG] Effectively detaching 'less' from a pipe X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 04:31:08 -0000 On Feb 26, 07, at 8:27 PM, Kelly Jones wrote: > I often run commands piped to 'less', to make sure the command is > working OK by looking at the first few lines of output. Don't use "less". Use "head" instead: command | head -n N (where N is the number of lines of the output you want to see) HTH! -- Woody