<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sed&amp;amp;awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845718#M821827</link>
    <description>How can make ignore processing pf previuos record .&lt;BR /&gt;&lt;BR /&gt;If y[i]=$0&lt;BR /&gt;&lt;BR /&gt;for (i=1;i&amp;lt;=NR;i++)&lt;BR /&gt;{&lt;BR /&gt;print y[i]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The out put will be :&lt;BR /&gt;line1&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3&lt;BR /&gt;&lt;BR /&gt;I want it : &lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3</description>
    <pubDate>Fri, 15 Nov 2002 12:37:29 GMT</pubDate>
    <dc:creator>ehab_2</dc:creator>
    <dc:date>2002-11-15T12:37:29Z</dc:date>
    <item>
      <title>sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845718#M821827</link>
      <description>How can make ignore processing pf previuos record .&lt;BR /&gt;&lt;BR /&gt;If y[i]=$0&lt;BR /&gt;&lt;BR /&gt;for (i=1;i&amp;lt;=NR;i++)&lt;BR /&gt;{&lt;BR /&gt;print y[i]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The out put will be :&lt;BR /&gt;line1&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3&lt;BR /&gt;&lt;BR /&gt;I want it : &lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3</description>
      <pubDate>Fri, 15 Nov 2002 12:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845718#M821827</guid>
      <dc:creator>ehab_2</dc:creator>
      <dc:date>2002-11-15T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845719#M821828</link>
      <description>Hi&lt;BR /&gt;command sort and uniq&lt;BR /&gt;&lt;BR /&gt;#cat file&lt;BR /&gt;line1&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3 &lt;BR /&gt;&lt;BR /&gt;#cat file | sort | uniq&lt;BR /&gt;&lt;BR /&gt;line1&lt;BR /&gt;line2&lt;BR /&gt;line3&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 15 Nov 2002 12:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845719#M821828</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-11-15T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845720#M821829</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;"sort -u file" will do it, but you will lost the initial order.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Jean-Louis</description>
      <pubDate>Fri, 15 Nov 2002 13:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845720#M821829</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-11-15T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845721#M821830</link>
      <description>#sort -u &lt;FILENAME&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 15 Nov 2002 13:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845721#M821830</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-11-15T13:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845722#M821831</link>
      <description>If the original order of the files is important to you, you can use a temp file containing the already printed files.&lt;BR /&gt;&lt;BR /&gt;it should look:&lt;BR /&gt;tmp_file=/tmp/tmpfile.$$&lt;BR /&gt;&lt;BR /&gt;if y[i]=$0&lt;BR /&gt;for (i=0,i&amp;lt;=NR;i++)&lt;BR /&gt;{&lt;BR /&gt;  if (cat tmp_file|grep y[i]|wl -l == 0&lt;BR /&gt;  {&lt;BR /&gt;     echo y[i] &amp;gt;&amp;gt; tmp_file&lt;BR /&gt;     printf(y[i])&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;\rm tmp_file</description>
      <pubDate>Sat, 21 Dec 2002 15:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845722#M821831</guid>
      <dc:creator>Oren_3</dc:creator>
      <dc:date>2002-12-21T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: sed&amp;awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845723#M821832</link>
      <description># perl -ne '$x{$_}++ or print' file&lt;BR /&gt;&lt;BR /&gt;prints unique lines keeping original order</description>
      <pubDate>Sun, 22 Dec 2002 10:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-amp-awk/m-p/2845723#M821832</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-12-22T10:18:51Z</dc:date>
    </item>
  </channel>
</rss>

