home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] Effectively detaching 'less' from a pipe



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nmlug.org/pipermail/nmlug/attachments/20070226/6f29fe08/attachment.htm 




Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache