<?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 how to remove some null or unprintable characters withing a string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305865#M184489</link>
    <description>The xyz variable includes the value of "HP-UX", and also some null OR unpritable characters, I want to get rid of these characters, and just leave exactly "HP-UX". &lt;BR /&gt;&lt;BR /&gt;HOW?</description>
    <pubDate>Tue, 15 Jun 2004 13:13:04 GMT</pubDate>
    <dc:creator>Hanry Zhou</dc:creator>
    <dc:date>2004-06-15T13:13:04Z</dc:date>
    <item>
      <title>how to remove some null or unprintable characters withing a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305865#M184489</link>
      <description>The xyz variable includes the value of "HP-UX", and also some null OR unpritable characters, I want to get rid of these characters, and just leave exactly "HP-UX". &lt;BR /&gt;&lt;BR /&gt;HOW?</description>
      <pubDate>Tue, 15 Jun 2004 13:13:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305865#M184489</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-06-15T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove some null or unprintable characters withing a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305866#M184490</link>
      <description>Little more info please.&lt;BR /&gt;1. Do you know all the null/unprintables you want to eliminate?&lt;BR /&gt;2. Is there a field separator involved with "HP-UX"?&lt;BR /&gt;&lt;BR /&gt;Many ways to do this dependent upon #1&amp;#2;, such as sed, tr, awk, etc.&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 15 Jun 2004 19:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305866#M184490</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-06-15T19:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove some null or unprintable characters withing a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305867#M184491</link>
      <description>use the strings command&lt;BR /&gt;&lt;BR /&gt;print "$var" | strings</description>
      <pubDate>Tue, 15 Jun 2004 20:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305867#M184491</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-06-15T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove some null or unprintable characters withing a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305868#M184492</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;You may want to use 'tr'. Check  out 'man tr'&lt;BR /&gt;Notably:&lt;BR /&gt;-d to delete character&lt;BR /&gt;-c to specify the complement character range&lt;BR /&gt;&lt;BR /&gt;by combining you deleted everthing except the characters listed. For example:&lt;BR /&gt;&lt;BR /&gt;$ export test="-test .,;HP-UX% -"&lt;BR /&gt;$ echo $test | tr -cd "\-[:upper:]" | read xyz&lt;BR /&gt;$ echo $xyz&lt;BR /&gt;-HP-UX-&lt;BR /&gt;$ echo $test | tr -cd "\-[:upper:][:lower:]" | read xyz&lt;BR /&gt;$ echo $xyz&lt;BR /&gt;-testHP-UX-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2004 20:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305868#M184492</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-06-15T20:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove some null or unprintable characters withing a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305869#M184493</link>
      <description>Before you edit the string you should find out which unprintable characters are in there. Try:&lt;BR /&gt;echo "${xyz}" | cat -vte&lt;BR /&gt;&lt;BR /&gt;The -vte options for cat are:&lt;BR /&gt;-v  show non-printable characters as '^' followed by a character. i.e. the NULL character shows up as '^@'&lt;BR /&gt;-t  show tabs as '^I'&lt;BR /&gt;-e  show end-of-line as '$'</description>
      <pubDate>Wed, 16 Jun 2004 08:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-some-null-or-unprintable-characters-withing-a/m-p/3305869#M184493</guid>
      <dc:creator>Michael D'Aulerio</dc:creator>
      <dc:date>2004-06-16T08:27:52Z</dc:date>
    </item>
  </channel>
</rss>

