<?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: Remove command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273856#M656778</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You have assigned points to 6 of 93 responses.&lt;BR /&gt;&lt;BR /&gt;If answers you got were helful, you may want donate some points, they cost you nothing.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos" target="_blank"&gt;http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2011 17:04:37 GMT</pubDate>
    <dc:creator>Hemmetter</dc:creator>
    <dc:date>2011-09-19T17:04:37Z</dc:date>
    <item>
      <title>Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273851#M656773</link>
      <description>I have a large file , the file have many lines , the content is as below , each line MAY be begins or ended with # sign .&lt;BR /&gt;&lt;BR /&gt;#abc&lt;BR /&gt;#uid#&lt;BR /&gt;yti&lt;BR /&gt;#des&lt;BR /&gt;#fus&lt;BR /&gt;eue#&lt;BR /&gt;fds&lt;BR /&gt;&lt;BR /&gt;Can advise if I want to check each line , if it begins or ends with # sign then remove this # sign , if not # , then do nothing ( also ,  if the # sign is in the middle of the line , then do nothing ) , only remove it if it is begin or end character , can advise what can i do ? &lt;BR /&gt;&lt;BR /&gt;the file above should be changed to &lt;BR /&gt;&lt;BR /&gt;abc&lt;BR /&gt;uid&lt;BR /&gt;yti&lt;BR /&gt;des&lt;BR /&gt;fus&lt;BR /&gt;eue&lt;BR /&gt;fds</description>
      <pubDate>Tue, 15 Feb 2011 08:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273851#M656773</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2011-02-15T08:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273852#M656774</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;you want to replace either linestart "^" followed by hash mark or hashmark followed by&lt;BR /&gt;line-end "$" with "nothing" .&lt;BR /&gt;&lt;BR /&gt;That is by "sed": &lt;BR /&gt;# sed "s/^#// ; s/#$//" file &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;or by "perl":&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;perl -i -pe "s/^#// ; s/#$//" file&lt;BR /&gt;&lt;BR /&gt;here replace the file "inplace" (-i)&lt;BR /&gt;&lt;BR /&gt;see regexp(5), sed(1), perl(1)&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2011 09:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273852#M656774</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2011-02-15T09:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273853#M656775</link>
      <description>Thx , it works,&lt;BR /&gt;&lt;BR /&gt;if it is not # sign , do the same thing for " sign , how to do it ? thx</description>
      <pubDate>Tue, 15 Feb 2011 09:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273853#M656775</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2011-02-15T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273854#M656776</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it is as easy as either:&lt;BR /&gt;# sed 's/^"// ; s/"$//' f&lt;BR /&gt;or mask the special char " by \"&lt;BR /&gt;# sed 's/^"// ; s/"$//' f&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2011 10:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273854#M656776</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2011-02-15T10:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273855#M656777</link>
      <description>it works , thanks much for help</description>
      <pubDate>Wed, 16 Feb 2011 07:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273855#M656777</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2011-02-16T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273856#M656778</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You have assigned points to 6 of 93 responses.&lt;BR /&gt;&lt;BR /&gt;If answers you got were helful, you may want donate some points, they cost you nothing.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos" target="_blank"&gt;http://h30499.www3.hp.com/t5/help/faqpage/faq-category-id/kudos#kudos&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 17:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273856#M656778</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2011-09-19T17:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273857#M656779</link>
      <description>&lt;P&gt;Hi HGH,&lt;BR /&gt;&lt;BR /&gt;maybe you can visit this thread? &lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/General/Congrats-to-a-new-wiz-Hemmetter/m-p/4606244#M144980" target="_blank"&gt;http://h30499.www3.hp.com/t5/General/Congrats-to-a-new-wiz-Hemmetter/m-p/4606244#M144980&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;:-)&lt;BR /&gt;V.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 17:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-command/m-p/5273857#M656779</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2011-09-19T17:05:26Z</dc:date>
    </item>
  </channel>
</rss>

