<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Print out only last revision in list of patches | Solaris | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Tue, 04 Oct 2005 06:08:52 -0000</lastBuildDate><item><title>Re: Print out only last revision in list of patches | Solaris | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/835/print-out-only-last-revision-in-list-of-patches/#comment-2769035</link><description>This failed with an awk error on my Solaris 8 system.&lt;br&gt;&lt;br&gt;showrev -p | awk -F- '{hold0=$0; hold=$1; while (getline &amp;gt; 0) { if (hold!=$1) {print hold0; hold0=$0} if (hold=$1) hold0=$0 } }' &lt;br&gt;&lt;br&gt;Changing the 'awk' to 'nawk' resolved the issue.&lt;br&gt;&lt;br&gt;showrev -p | nawk -F- '{hold0=$0; hold=$1; while (getline &amp;gt; 0) { if (hold!=$1) {print hold0; hold0=$0} if (hold=$1) hold0=$0 } }' &lt;br&gt;&lt;br&gt;Thanks for the tip.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 04 Oct 2005 06:08:52 -0000</pubDate></item></channel></rss>