Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2007 21:16:09 -0700
From:      "Larry W. Wood" <lwwoody@comcast.net>
To:        New Mexico Linux Users Group Mail List <nmlug@nmlug.org>
Cc:        freebsd-questions@freebsd.org, nmosug-l@mailman.swcp.com, linuxusersgroup@googlegroups.com
Subject:   Re: [NMLUG] Effectively detaching 'less' from a pipe
Message-ID:  <440A76B3-1AEB-49EE-9FC4-90C63616C169@comcast.net>
In-Reply-To: <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com>
References:  <26face530702261927w553488a1uae8629aa3d827497@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?440A76B3-1AEB-49EE-9FC4-90C63616C169>