<?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: strings in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126163#M803271</link>
    <description>sorry&lt;BR /&gt;uname -r | sed 's/\"//g' | sed 's/\.//g' | cut -c2-4 &lt;BR /&gt;</description>
    <pubDate>Fri, 21 Nov 2003 13:42:13 GMT</pubDate>
    <dc:creator>TSaliba</dc:creator>
    <dc:date>2003-11-21T13:42:13Z</dc:date>
    <item>
      <title>strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126154#M803262</link>
      <description>These are my strings&lt;BR /&gt;version="5.9"&lt;BR /&gt;version="5.8"&lt;BR /&gt;version="5.7"&lt;BR /&gt;verison="5.6"&lt;BR /&gt;verison="5.5.1"&lt;BR /&gt;&lt;BR /&gt;I always want to ignore the first number i.e "5" and print the rest of it without the digits and without the double quotes.&lt;BR /&gt;How do I do that?&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 13:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126154#M803262</guid>
      <dc:creator>Penny Patch</dc:creator>
      <dc:date>2003-11-21T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126155#M803263</link>
      <description>Sorry..some mistakes in the previous message.Please ignore that one.&lt;BR /&gt;This is the new one.&lt;BR /&gt;&lt;BR /&gt;These are my strings&lt;BR /&gt;version="5.9"&lt;BR /&gt;version="5.8"&lt;BR /&gt;version="5.7"&lt;BR /&gt;verison="5.6"&lt;BR /&gt;verison="5.5.1"&lt;BR /&gt;&lt;BR /&gt;I always want to ignore the first number i.e "5" and print the rest of the number(s) without the PERIOD and without the double quotes.&lt;BR /&gt;How do I do that?&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 13:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126155#M803263</guid>
      <dc:creator>Penny Patch</dc:creator>
      <dc:date>2003-11-21T13:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126156#M803264</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;assign a line to s$ and use&lt;BR /&gt;expr s$ : 'version=\"5\(.*\)\"'&lt;BR /&gt;&lt;BR /&gt;if you want to read a file.&lt;BR /&gt;while read s&lt;BR /&gt;do&lt;BR /&gt;  expr s$ : 'version=\"5\(.*\)\"'&lt;BR /&gt;done &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 13:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126156#M803264</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-11-21T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126157#M803265</link>
      <description>Use command awk !&lt;BR /&gt;Bruno</description>
      <pubDate>Fri, 21 Nov 2003 13:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126157#M803265</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-11-21T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126158#M803266</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;assign a line to s$ and use&lt;BR /&gt;expr s$ : 'version=\"5.\(.*\)\"'&lt;BR /&gt;&lt;BR /&gt;if you want to read a file.&lt;BR /&gt;while read s&lt;BR /&gt;do&lt;BR /&gt;expr s$ : 'version=\"5.\(.*\)\"'&lt;BR /&gt;done &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 21 Nov 2003 13:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126158#M803266</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-11-21T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126159#M803267</link>
      <description>hi&lt;BR /&gt;if you want print &lt;BR /&gt;version=9&lt;BR /&gt;version=8&lt;BR /&gt;..&lt;BR /&gt;execute the attached script&lt;BR /&gt;TS</description>
      <pubDate>Fri, 21 Nov 2003 13:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126159#M803267</guid>
      <dc:creator>TSaliba</dc:creator>
      <dc:date>2003-11-21T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126160#M803268</link>
      <description>Thanks for your replies.&lt;BR /&gt;But these strings are not in the file. This will the output of uname -r command&lt;BR /&gt;#uname -r&lt;BR /&gt;5.9&lt;BR /&gt;#uname -r&lt;BR /&gt;5.5.1&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Sorry for the confusion.</description>
      <pubDate>Fri, 21 Nov 2003 13:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126160#M803268</guid>
      <dc:creator>Penny Patch</dc:creator>
      <dc:date>2003-11-21T13:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126161#M803269</link>
      <description>ok &lt;BR /&gt;then you can run &lt;BR /&gt;&lt;BR /&gt;uname -r | sed 's/\"//g' file.out  | sed 's/\.//g' | cut -c2-4 &lt;BR /&gt;&lt;BR /&gt;Hope this help</description>
      <pubDate>Fri, 21 Nov 2003 13:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126161#M803269</guid>
      <dc:creator>TSaliba</dc:creator>
      <dc:date>2003-11-21T13:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126162#M803270</link>
      <description>uname -r | tr -d "\"." | cut -c 2-</description>
      <pubDate>Fri, 21 Nov 2003 13:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126162#M803270</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-11-21T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126163#M803271</link>
      <description>sorry&lt;BR /&gt;uname -r | sed 's/\"//g' | sed 's/\.//g' | cut -c2-4 &lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 13:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126163#M803271</guid>
      <dc:creator>TSaliba</dc:creator>
      <dc:date>2003-11-21T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126164#M803272</link>
      <description>Hi,&lt;BR /&gt;a little more detailed:&lt;BR /&gt;# echo $verison|awk -F. '{$1="";print$0}'&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 13:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126164#M803272</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-11-21T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126165#M803273</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;uname -r | awk '{print substr($0,3)}'&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 14:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126165#M803273</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-11-21T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126166#M803274</link>
      <description>Well, &lt;BR /&gt;Also this case it is resolved with command awk.&lt;BR /&gt;uname -r | awk '{print substr($0,3)}'&lt;BR /&gt;Bruno&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Nov 2003 14:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126166#M803274</guid>
      <dc:creator>Bruno Ganino</dc:creator>
      <dc:date>2003-11-21T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126167#M803275</link>
      <description>You could also try:&lt;BR /&gt;&lt;BR /&gt;# uname -r | awk -F 5. '{print $2}'</description>
      <pubDate>Fri, 21 Nov 2003 14:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126167#M803275</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-11-21T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126168#M803276</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# uname -r | sed 's/^[^\.]*\.//'&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt; JW.</description>
      <pubDate>Sun, 23 Nov 2003 17:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings/m-p/3126168#M803276</guid>
      <dc:creator>John Wright_1</dc:creator>
      <dc:date>2003-11-23T17:46:06Z</dc:date>
    </item>
  </channel>
</rss>

