<?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: awk string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096542#M806879</link>
    <description>&lt;BR /&gt;Your question is not entirely clear to me.&lt;BR /&gt;If you need to transform the first string &lt;BR /&gt;into the second then here are a few examples:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk -F_ '{print "sar" $3}'&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk '{split ($0,words,"_"); print "sar" words[3]}'&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk '{sub("cpu_stat_","sar"); print}'&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Fri, 17 Oct 2003 21:40:07 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2003-10-17T21:40:07Z</dc:date>
    <item>
      <title>awk string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096541#M806878</link>
      <description>I have one file name: cpu_stat_oct152003&lt;BR /&gt;&lt;BR /&gt;i need on script cut cpu_stat because my new file is : saroct152003,&lt;BR /&gt;&lt;BR /&gt;how to.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rene</description>
      <pubDate>Fri, 17 Oct 2003 21:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096541#M806878</guid>
      <dc:creator>Rene Mendez_4</dc:creator>
      <dc:date>2003-10-17T21:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: awk string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096542#M806879</link>
      <description>&lt;BR /&gt;Your question is not entirely clear to me.&lt;BR /&gt;If you need to transform the first string &lt;BR /&gt;into the second then here are a few examples:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk -F_ '{print "sar" $3}'&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk '{split ($0,words,"_"); print "sar" words[3]}'&lt;BR /&gt;&lt;BR /&gt;echo cpu_stat_oct152003 | awk '{sub("cpu_stat_","sar"); print}'&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 21:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096542#M806879</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-10-17T21:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: awk string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096543#M806880</link>
      <description>or without even using awk&lt;BR /&gt;&lt;BR /&gt;oldname="cpu_stat_oct152003"&lt;BR /&gt;newname="sar${oldname##*_}"</description>
      <pubDate>Fri, 17 Oct 2003 22:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-string/m-p/3096543#M806880</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-10-17T22:13:20Z</dc:date>
    </item>
  </channel>
</rss>

