<?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: Scripting Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627543#M726282</link>
    <description>Bingo!&lt;BR /&gt;Good to see the master at work.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
    <pubDate>Fri, 07 Dec 2001 15:13:46 GMT</pubDate>
    <dc:creator>Craig Rants</dc:creator>
    <dc:date>2001-12-07T15:13:46Z</dc:date>
    <item>
      <title>Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627541#M726280</link>
      <description>I have to breakdown the contents of a field in the same manner each time I come upon this field. The format of the field is 123456789XX0000.  I want to remove the first 9 numbers from the field so the result would be XX0000. I know how I would approach this for command line arguments with shift. And I know how I could do this by processing each field through a while or for statment. But this is quite a big file and I don't want this to run all weekend. So basically my question is, is there a way to format the field in a similar manner to the shift command.&lt;BR /&gt;&lt;BR /&gt;All responses are appreciated.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Fri, 07 Dec 2001 15:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627541#M726280</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-07T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627542#M726281</link>
      <description>Hi Craig:&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;# echo "123456789xxxx1234"|awk '{print substr($0,10,8)}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2001 15:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627542#M726281</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-07T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627543#M726282</link>
      <description>Bingo!&lt;BR /&gt;Good to see the master at work.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Fri, 07 Dec 2001 15:13:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627543#M726282</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-07T15:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627544#M726283</link>
      <description>HI&lt;BR /&gt;One more choise if you need fields from 10th position through last.&lt;BR /&gt;&lt;BR /&gt;echo "1234567890xabcdef" |cut -c 10-&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Fri, 07 Dec 2001 15:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627544#M726283</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-12-07T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627545#M726284</link>
      <description>Hi Craig,&lt;BR /&gt;&lt;BR /&gt;Here's another way:&lt;BR /&gt;&lt;BR /&gt;echo "123456789xxxx1234"|cut -c10-&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 07 Dec 2001 15:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627545#M726284</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-07T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627546#M726285</link>
      <description>I had tried cut and I must have missed something in my syntax.&lt;BR /&gt;&lt;BR /&gt;Now I know.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Fri, 07 Dec 2001 15:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627546#M726285</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-07T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627547#M726286</link>
      <description>echo "123456789XX0000"|sed "s/^\([0-9]\{9\}\)\(.*\)/\2/"&lt;BR /&gt;&lt;BR /&gt;for xx0000&lt;BR /&gt;&lt;BR /&gt;or echo "123456789XX0000"|sed "s/^\([0-9]\{9\}\)\(..\)\(.*\)/\3/"&lt;BR /&gt;&lt;BR /&gt;for 0000&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 07 Dec 2001 18:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2627547#M726286</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-12-07T18:47:14Z</dc:date>
    </item>
  </channel>
</rss>

