<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: my package of the day: less (yes, less)</title>
	<atom:link href="http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-package-of-the-day-less-yes-less-2</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 19:40:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joachim Nilsson</title>
		<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/comment-page-1/#comment-1035</link>
		<dc:creator>Joachim Nilsson</dc:creator>
		<pubDate>Thu, 05 Jun 2008 20:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/#comment-1035</guid>
		<description>I see it too, I just tried implementing my own tip on a new machine - failed miserably.  Sorry about that.

The trick seems to be the citation (&quot;) and double dash&#039;s (--) that get screwed up when I paste from Firefox into a gnome-terminal.  In particular the --color (double dashes) got messed up.

That and the fact that not all installations have the following environment variables set.  Ubuntu 8.04 and 7.10 seem to though.

setenv LESSOPEN &#039;&#124; /usr/bin/lesspipe %s&#039;
setenv LESSCLOSE &#039;/usr/bin/lesspipe %s %s

I just made a quick search for it and found a better example:

http://www.speedblue.org/less_color.php

Regards
 /Joachim</description>
		<content:encoded><![CDATA[<p>I see it too, I just tried implementing my own tip on a new machine &#8211; failed miserably.  Sorry about that.</p>
<p>The trick seems to be the citation (&#8220;) and double dash&#8217;s (&#8211;) that get screwed up when I paste from Firefox into a gnome-terminal.  In particular the &#8211;color (double dashes) got messed up.</p>
<p>That and the fact that not all installations have the following environment variables set.  Ubuntu 8.04 and 7.10 seem to though.</p>
<p>setenv LESSOPEN &#8216;| /usr/bin/lesspipe %s&#8217;<br />
setenv LESSCLOSE &#8216;/usr/bin/lesspipe %s %s</p>
<p>I just made a quick search for it and found a better example:</p>
<p><a href="http://www.speedblue.org/less_color.php" rel="nofollow">http://www.speedblue.org/less_color.php</a></p>
<p>Regards<br />
 /Joachim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Internet Alchemy &#187; links for 2008-06-03</title>
		<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/comment-page-1/#comment-1006</link>
		<dc:creator>Internet Alchemy &#187; links for 2008-06-03</dc:creator>
		<pubDate>Tue, 03 Jun 2008 23:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/#comment-1006</guid>
		<description>[...] less Some lesser(!) known options for less (tags: less howto tips linux) [...]</description>
		<content:encoded><![CDATA[<p>[...] less Some lesser(!) known options for less (tags: less howto tips linux) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ccm</title>
		<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/comment-page-1/#comment-1002</link>
		<dc:creator>ccm</dc:creator>
		<pubDate>Tue, 03 Jun 2008 14:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/#comment-1002</guid>
		<description>@Joachim: Thank you for the hint. Seems there are some details missing but I&#039;ll figure out and probably report back.

@mish: Yes, I know most. The point is that less is installed by default on a lot of distributions. Therefore knowing it a bit deeper helps you on those systems where you either are not able to install software or just don&#039;t want to. Nevertheless, thank you for the hint on using it as a man pager - I&#039;ll give it a try and see how it differs.</description>
		<content:encoded><![CDATA[<p>@Joachim: Thank you for the hint. Seems there are some details missing but I&#8217;ll figure out and probably report back.</p>
<p>@mish: Yes, I know most. The point is that less is installed by default on a lot of distributions. Therefore knowing it a bit deeper helps you on those systems where you either are not able to install software or just don&#8217;t want to. Nevertheless, thank you for the hint on using it as a man pager &#8211; I&#8217;ll give it a try and see how it differs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mish</title>
		<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/comment-page-1/#comment-1001</link>
		<dc:creator>mish</dc:creator>
		<pubDate>Tue, 03 Jun 2008 14:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/#comment-1001</guid>
		<description>Have you tried out most ?  It can do that bit more than less.

http://debaday.livejournal.com/24084.html
http://linux.die.net/man/1/most

It&#039;s particularly good when used by man, for which you need to do one of

update-alternatives --set pager /usr/bin/most
OR
in your .bashrc:
export PAGER=/usr/bin/most</description>
		<content:encoded><![CDATA[<p>Have you tried out most ?  It can do that bit more than less.</p>
<p><a href="http://debaday.livejournal.com/24084.html" rel="nofollow">http://debaday.livejournal.com/24084.html</a><br />
<a href="http://linux.die.net/man/1/most" rel="nofollow">http://linux.die.net/man/1/most</a></p>
<p>It&#8217;s particularly good when used by man, for which you need to do one of</p>
<p>update-alternatives &#8211;set pager /usr/bin/most<br />
OR<br />
in your .bashrc:<br />
export PAGER=/usr/bin/most</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joachim Nilsson</title>
		<link>http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/comment-page-1/#comment-1000</link>
		<dc:creator>Joachim Nilsson</dc:creator>
		<pubDate>Tue, 03 Jun 2008 09:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.screenage.de/blog/2008/06/03/my-package-of-the-day-less-yes-less-2/#comment-1000</guid>
		<description>I also use less extensively and have found the .lessfilter file to be a gold mine.

Put the following in your ~/.lessfilter file:


#!/bin/sh
# Neat less trickery
# Joachim Nilsson 

case &quot;$1&quot; in
*.Z) uncompress -
 if [ -s /tmp/less.$$ ]; then
      echo /tmp/less.$$
 else
      rm -f /tmp/less.$$
 fi
 ;;
*.[ch]) export LESS=&quot;$LESS -R&quot;; enscript -Ec --color -w ansi -o - $1
 ;;
esac


Now, run &quot;less -r myfile.c&quot; and have syntax highlighted C, thanks to enscript! 

I should blog about these things, I do it too rarely. :-)</description>
		<content:encoded><![CDATA[<p>I also use less extensively and have found the .lessfilter file to be a gold mine.</p>
<p>Put the following in your ~/.lessfilter file:</p>
<p>#!/bin/sh<br />
# Neat less trickery<br />
# Joachim Nilsson </p>
<p>case &#8220;$1&#8243; in<br />
*.Z) uncompress -<br />
 if [ -s /tmp/less.$$ ]; then<br />
      echo /tmp/less.$$<br />
 else<br />
      rm -f /tmp/less.$$<br />
 fi<br />
 ;;<br />
*.[ch]) export LESS=&#8221;$LESS -R&#8221;; enscript -Ec &#8211;color -w ansi -o &#8211; $1<br />
 ;;<br />
esac</p>
<p>Now, run &#8220;less -r myfile.c&#8221; and have syntax highlighted C, thanks to enscript! </p>
<p>I should blog about these things, I do it too rarely. <img src='http://www.screenage.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

