Re: Effectively detaching 'less' from a pipe

"Larry W. Wood" <[email protected]>
Newsgroups gmane.org.user-groups.nmlug,gmane.os.freebsd.questions
Message-ID <[email protected]>
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

_______________________________________________
NMLUG mailing list
[email protected]
http://www.nmlug.org/mailman/listinfo/nmlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.