<?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: SED in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630465#M726344</link>
    <description>Hello Matt,&lt;BR /&gt;&lt;BR /&gt;if you would like to get rid of ALL commas, then it is enough to&lt;BR /&gt;&lt;BR /&gt;tr -d "," &amp;lt; org-file &amp;gt; new-file&lt;BR /&gt;&lt;BR /&gt;But if you only want to get rid of the trailing commas, you'll need something like&lt;BR /&gt;&lt;BR /&gt;sed 's/,$//' &amp;lt; old-file &amp;gt; new-file&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch</description>
    <pubDate>Wed, 12 Dec 2001 23:28:54 GMT</pubDate>
    <dc:creator>Wodisch</dc:creator>
    <dc:date>2001-12-12T23:28:54Z</dc:date>
    <item>
      <title>SED</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630462#M726341</link>
      <description>I have a file that looks similar to the following:&lt;BR /&gt;server1_138476245,&lt;BR /&gt;server2_543989432,&lt;BR /&gt;server3_534242389,&lt;BR /&gt;&lt;BR /&gt;Is there any way to manipulate this file to remove the ",".  I suspect the 'sed' command could be used, but unfortunately I'm not too familiar with this utility.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;-Matt</description>
      <pubDate>Wed, 12 Dec 2001 17:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630462#M726341</guid>
      <dc:creator>Matt Dunfee</dc:creator>
      <dc:date>2001-12-12T17:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: SED</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630463#M726342</link>
      <description>You can do ..&lt;BR /&gt;&lt;BR /&gt;# cat &lt;THE-FILE&gt; | sed 's/,//g' &amp;gt; &lt;NEW-FILE&gt;&lt;/NEW-FILE&gt;&lt;/THE-FILE&gt;</description>
      <pubDate>Wed, 12 Dec 2001 19:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630463#M726342</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2001-12-12T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: SED</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630464#M726343</link>
      <description>or ..&lt;BR /&gt;&lt;BR /&gt;# cat &lt;THE-FILE&gt; | tr "," "\000" &amp;gt; &lt;NEW-FILE&gt;&lt;BR /&gt;&lt;BR /&gt;The \000 is the null character.&lt;/NEW-FILE&gt;&lt;/THE-FILE&gt;</description>
      <pubDate>Wed, 12 Dec 2001 19:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630464#M726343</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2001-12-12T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: SED</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630465#M726344</link>
      <description>Hello Matt,&lt;BR /&gt;&lt;BR /&gt;if you would like to get rid of ALL commas, then it is enough to&lt;BR /&gt;&lt;BR /&gt;tr -d "," &amp;lt; org-file &amp;gt; new-file&lt;BR /&gt;&lt;BR /&gt;But if you only want to get rid of the trailing commas, you'll need something like&lt;BR /&gt;&lt;BR /&gt;sed 's/,$//' &amp;lt; old-file &amp;gt; new-file&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch</description>
      <pubDate>Wed, 12 Dec 2001 23:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/2630465#M726344</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-12-12T23:28:54Z</dc:date>
    </item>
  </channel>
</rss>

