<?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: Only integers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573008#M725366</link>
    <description>And ofcourse JRF has the matured way of dealing it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Thu, 30 Aug 2001 15:24:21 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2001-08-30T15:24:21Z</dc:date>
    <item>
      <title>Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573005#M725363</link>
      <description>Hi&lt;BR /&gt;  I need to check that a particular field in comma separated file has only integers.&lt;BR /&gt;  I have tried it using typeset as&lt;BR /&gt;typeset -i txt&lt;BR /&gt;while read each;do&lt;BR /&gt;     txt=`cut -f, -d1`&lt;BR /&gt;done&lt;FILENAME&gt;&lt;/FILENAME&gt;   In this case if the field is non integer, the whole script fails.&lt;BR /&gt; I have also used grep as&lt;BR /&gt;while read each;do&lt;BR /&gt;     echo $each| cut -f, -d1 | grep -v [0-9] &amp;gt; /dev/null&lt;BR /&gt;     if [ $? -eq 0 ]; then&lt;BR /&gt;        non integer&lt;BR /&gt;    fi&lt;BR /&gt;done &amp;lt; filename&lt;BR /&gt;  This works but is very slow.  &lt;BR /&gt;  Can anyone help me write a faster script...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;...BPK...</description>
      <pubDate>Thu, 30 Aug 2001 15:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573005#M725363</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-08-30T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573006#M725364</link>
      <description>Hi Praveen "Vijayawada",&lt;BR /&gt;&lt;BR /&gt;Check this thread. We had a discussion on getting rid of this "typeset" problem.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x235f1012aa92d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x235f1012aa92d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sridhar</description>
      <pubDate>Thu, 30 Aug 2001 15:21:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573006#M725364</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573007#M725365</link>
      <description>Hi Praveen:&lt;BR /&gt;&lt;BR /&gt;Here's one way, where "X" contains the data of interest:&lt;BR /&gt;&lt;BR /&gt;if [ `expr $X : '[0-9]*'` -ne `expr $X : '.*'` ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Integer expected!"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 30 Aug 2001 15:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573007#M725365</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-30T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573008#M725366</link>
      <description>And ofcourse JRF has the matured way of dealing it.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 15:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573008#M725366</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573009#M725367</link>
      <description>Hi&lt;BR /&gt;  Thanks JRF, it is faster than what I had tried.&lt;BR /&gt;&lt;BR /&gt;  And Sridhar Congratulations on becoming a 'GRADUATE' so fast.... keep it up....&lt;BR /&gt;  Mana Desam peruni veluguloki techaru kadaa, meru...&lt;BR /&gt;&lt;BR /&gt;...BPK...</description>
      <pubDate>Thu, 30 Aug 2001 15:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573009#M725367</guid>
      <dc:creator>Praveen Bezawada</dc:creator>
      <dc:date>2001-08-30T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573010#M725368</link>
      <description>Hi Praveen &amp;amp; Sridhar:&lt;BR /&gt;&lt;BR /&gt;As always, I'm glad to have helped, Praveen.&lt;BR /&gt;&lt;BR /&gt;...and Sridhar, congratulations to you!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 30 Aug 2001 15:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573010#M725368</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-08-30T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573011#M725369</link>
      <description>Thank you JRF,&lt;BR /&gt;&lt;BR /&gt;You are the inspiration for most of us.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 30 Aug 2001 16:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573011#M725369</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-30T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Only integers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573012#M725370</link>
      <description>Hi, did you try this ?&lt;BR /&gt;&lt;BR /&gt;if grep "[^0-9,]" fil1 &amp;gt; /dev/null &lt;BR /&gt;then&lt;BR /&gt;echo non integer&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suhas&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2001 03:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/only-integers/m-p/2573012#M725370</guid>
      <dc:creator>Suhas_3</dc:creator>
      <dc:date>2001-09-13T03:29:31Z</dc:date>
    </item>
  </channel>
</rss>

