<?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 Re: delete duplicates .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671693#M51064</link>
    <description>While we're at it, one of the best places to find vi (actually, ed command lines) is the "Ultimate Guide to vi", a virtual requirement for any Unix sysadmin.  One of the examples is a spell-checker for vi:&lt;BR /&gt;&lt;BR /&gt;G&lt;BR /&gt;:r! spell&lt;BR /&gt;&lt;BR /&gt;In fact, you can assing this to an unused vi command in your .exrc file. The example uses S since this isn't defined in vi:&lt;BR /&gt;&lt;BR /&gt;map S G:w!^M:r!spell %^M&lt;BR /&gt;&lt;BR /&gt;The ^M are literal carriage returns and must be added using the CTRL-V option flag in vi.&lt;BR /&gt;&lt;BR /&gt;For word processing, you can use the adjust command to format paragraphs using word wrap:&lt;BR /&gt;&lt;BR /&gt;!)exec adjust -m60&lt;BR /&gt;&lt;BR /&gt;This command starts on the current line and works to the end of the paragraph (next blank line), adjusting the righthand margin to no more than 60 characters but breaking the lines on a word boundary. adjust is fairly coll in that it pays attention to indents.&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Feb 2002 03:03:32 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-02-27T03:03:32Z</dc:date>
    <item>
      <title>delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671684#M51055</link>
      <description>Hey everyone .. &lt;BR /&gt;quick on here ..&lt;BR /&gt;I have a list of numbers like&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;4&lt;BR /&gt;4&lt;BR /&gt;4&lt;BR /&gt;&lt;BR /&gt;I need to delete the duplicates and just endup with one of each&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Feb 2002 15:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671684#M51055</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-26T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671685#M51056</link>
      <description>If it's in a file, say unsorted_file:&lt;BR /&gt;&lt;BR /&gt;sort -u unsorted_file &amp;gt; sorted_file&lt;BR /&gt;&lt;BR /&gt;Or, in a vi session, you can do this:&lt;BR /&gt;&lt;BR /&gt;:1,$!sort -u</description>
      <pubDate>Tue, 26 Feb 2002 15:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671685#M51056</guid>
      <dc:creator>Eric Ladner</dc:creator>
      <dc:date>2002-02-26T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671686#M51057</link>
      <description>Hi Richard.&lt;BR /&gt;&lt;BR /&gt;man uniq&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Tue, 26 Feb 2002 15:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671686#M51057</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2002-02-26T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671687#M51058</link>
      <description>Eric,&lt;BR /&gt;&lt;BR /&gt;that vi sort is great! I learned something new, thing my boss will let me go home for the day?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 26 Feb 2002 15:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671687#M51058</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-26T15:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671688#M51059</link>
      <description>I agree that was good.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Tue, 26 Feb 2002 15:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671688#M51059</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-26T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671689#M51060</link>
      <description>Heh..&lt;BR /&gt;&lt;BR /&gt;You can run ANY command like that, too..&lt;BR /&gt;&lt;BR /&gt;Want to put a directory listing in the file you are editing?  Here's how:&lt;BR /&gt;&lt;BR /&gt;:.!ls -l&lt;BR /&gt;&lt;BR /&gt;(make sure you are on a clean line, or it get's whacked).&lt;BR /&gt;&lt;BR /&gt;In general, you send a range to the command after the bang, then any ouput get's inserted back into your current buffer.</description>
      <pubDate>Tue, 26 Feb 2002 15:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671689#M51060</guid>
      <dc:creator>Eric Ladner</dc:creator>
      <dc:date>2002-02-26T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671690#M51061</link>
      <description>I like that ! Good Stuff !!&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Tue, 26 Feb 2002 16:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671690#M51061</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-26T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671691#M51062</link>
      <description>Eric,&lt;BR /&gt;&lt;BR /&gt;that's sweet</description>
      <pubDate>Tue, 26 Feb 2002 17:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671691#M51062</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2002-02-26T17:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671692#M51063</link>
      <description>Are you addicted to the command mode of vi?&lt;BR /&gt;&lt;BR /&gt;in window mode (editing, not input)&lt;BR /&gt;&lt;BR /&gt;replace the current line with the uname output&lt;BR /&gt;&lt;BR /&gt;  !!uname -a&lt;BR /&gt;&lt;BR /&gt;Sort the contents of a file immediately after opening&lt;BR /&gt;&lt;BR /&gt;  !Gsort -u&lt;BR /&gt;&lt;BR /&gt;No problem to put pipes in there too.&lt;BR /&gt;Take out the dups (including symlinks) and nonexisting directories in a directory listing:&lt;BR /&gt;&lt;BR /&gt;  !Gperl -ne '-d&amp;amp;&amp;amp;$P{$_}++==0&amp;amp;&amp;amp;push@P,$_;}END{print join":",@P;'&lt;BR /&gt;&lt;BR /&gt;If the command is to be pasted from a nice mail someone sent you, open a new line and paste that text into that line, then delete the complete line into a named buffer (say m) and execute the command using "@m"&lt;BR /&gt;&lt;BR /&gt;So if the current display has a line containing&lt;BR /&gt;&lt;BR /&gt;:r /tmp/swagent.log&lt;BR /&gt;&lt;BR /&gt;and you delete the line using&lt;BR /&gt;&lt;BR /&gt;"mdd&lt;BR /&gt;&lt;BR /&gt;you can now go to the line after wich you want the contents of /tmp/swagent.log inserted and type&lt;BR /&gt;&lt;BR /&gt;@m&lt;BR /&gt;&lt;BR /&gt;More tips like these can be found on a well written place like &lt;A href="http://www.networkcomputing.com/unixworld/tutorial/009/009.html" target="_blank"&gt;http://www.networkcomputing.com/unixworld/tutorial/009/009.html&lt;/A&gt;</description>
      <pubDate>Tue, 26 Feb 2002 18:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671692#M51063</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-02-26T18:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671693#M51064</link>
      <description>While we're at it, one of the best places to find vi (actually, ed command lines) is the "Ultimate Guide to vi", a virtual requirement for any Unix sysadmin.  One of the examples is a spell-checker for vi:&lt;BR /&gt;&lt;BR /&gt;G&lt;BR /&gt;:r! spell&lt;BR /&gt;&lt;BR /&gt;In fact, you can assing this to an unused vi command in your .exrc file. The example uses S since this isn't defined in vi:&lt;BR /&gt;&lt;BR /&gt;map S G:w!^M:r!spell %^M&lt;BR /&gt;&lt;BR /&gt;The ^M are literal carriage returns and must be added using the CTRL-V option flag in vi.&lt;BR /&gt;&lt;BR /&gt;For word processing, you can use the adjust command to format paragraphs using word wrap:&lt;BR /&gt;&lt;BR /&gt;!)exec adjust -m60&lt;BR /&gt;&lt;BR /&gt;This command starts on the current line and works to the end of the paragraph (next blank line), adjusting the righthand margin to no more than 60 characters but breaking the lines on a word boundary. adjust is fairly coll in that it pays attention to indents.&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2002 03:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671693#M51064</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-02-27T03:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671694#M51065</link>
      <description>To spell-check without leaving a vi session: &lt;BR /&gt;&lt;BR /&gt;:w !spell -b &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2002 03:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671694#M51065</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-02-27T03:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: delete duplicates ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671695#M51066</link>
      <description>Thanks Mr. Bill for the extra info .. you always come up with some great additional stuff. Ohhh and I do have the vi book !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 27 Feb 2002 04:04:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-duplicates/m-p/2671695#M51066</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-27T04:04:16Z</dc:date>
    </item>
  </channel>
</rss>

