<?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: substr in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865421#M98537</link>
    <description>Thanks, both solutions work.&lt;BR /&gt;&lt;BR /&gt;Regards, Alfons</description>
    <pubDate>Tue, 19 Sep 2006 09:16:19 GMT</pubDate>
    <dc:creator>A.G.M. Velthof</dc:creator>
    <dc:date>2006-09-19T09:16:19Z</dc:date>
    <item>
      <title>substr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865418#M98534</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I am making a script to determinate a filesystem  from the cmviewcl command.&lt;BR /&gt;I've come this far.&lt;BR /&gt;&lt;BR /&gt;uname -a|awk '{print $2}'&amp;gt;NODE_NAME&lt;BR /&gt;read NODE&amp;lt;$NODE_NAME&lt;BR /&gt;cmviewcl -n $NODE|grep -e running|grep -e NAO|awk '{print $1}' &amp;gt; running.out  (this produces the file "running.out" with 2 entry's, NAOT01 and NAOT03)&lt;BR /&gt;How do I change it, so the script substracts it to a file with the entry's T01 an T03?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 19 Sep 2006 09:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865418#M98534</guid>
      <dc:creator>A.G.M. Velthof</dc:creator>
      <dc:date>2006-09-19T09:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: substr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865419#M98535</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Do you want something like:&lt;BR /&gt;&lt;BR /&gt;# echo "NAT01\nNAT03"|awk '{print substr($1,3)}'&lt;BR /&gt;&lt;BR /&gt;...this snips off the first three characters of the string in $1.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 19 Sep 2006 09:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865419#M98535</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-09-19T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: substr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865420#M98536</link>
      <description>you can pipe your output to &lt;BR /&gt;&lt;BR /&gt;  | cut -c4-&lt;BR /&gt;&lt;BR /&gt;but this only works if you have 3 leading characters bedore the Txx string in the nodenames.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Sep 2006 09:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865420#M98536</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-09-19T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: substr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865421#M98537</link>
      <description>Thanks, both solutions work.&lt;BR /&gt;&lt;BR /&gt;Regards, Alfons</description>
      <pubDate>Tue, 19 Sep 2006 09:16:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865421#M98537</guid>
      <dc:creator>A.G.M. Velthof</dc:creator>
      <dc:date>2006-09-19T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: substr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865422#M98538</link>
      <description>NODE=$uname -a |awk '{print $2}')&lt;BR /&gt;cmviewcl -n ${NODE} |&lt;BR /&gt;awk '($0 ~ /running/ &amp;amp;&amp;amp; $1 ~ /NA/) { print substr($1,3)}&lt;BR /&gt;'</description>
      <pubDate>Wed, 20 Sep 2006 16:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/substr/m-p/3865422#M98538</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2006-09-20T16:20:21Z</dc:date>
    </item>
  </channel>
</rss>

