<?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: Converting string to number in ksh script? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693998#M56162</link>
    <description>&lt;BR /&gt;Thanks John, I did not even think about that possibility, but it certainly wouldn't work in that case.&lt;BR /&gt;&lt;BR /&gt;ADAM</description>
    <pubDate>Sat, 30 Mar 2002 18:58:56 GMT</pubDate>
    <dc:creator>MAD_2</dc:creator>
    <dc:date>2002-03-30T18:58:56Z</dc:date>
    <item>
      <title>Converting string to number in ksh script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693995#M56159</link>
      <description>Can anyone tell me how to convert the result from a series of commands from string to number in order to use these results with arithmetic operands?&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;bdf| grep /tmp | awk '{print $5}'| cut -c1,2 &lt;BR /&gt;&lt;BR /&gt;How to I convert the string result to number in a script?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Sat, 30 Mar 2002 16:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693995#M56159</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2002-03-30T16:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting string to number in ksh script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693996#M56160</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;this works&lt;BR /&gt;&lt;BR /&gt;answer=$(bdf | grep /tmp | awk '{print $5}'| cut -c1,2)&lt;BR /&gt;&lt;BR /&gt;expr answer$&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Sat, 30 Mar 2002 17:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693996#M56160</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-03-30T17:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting string to number in ksh script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693997#M56161</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;what you are trying to do here will fail if the disk uasge is below 10% try this instead&lt;BR /&gt;&lt;BR /&gt;answer=$(bdf| grep /tmp | awk '{print $5}'| sed -e 's/%//g')&lt;BR /&gt;&lt;BR /&gt;expr $answer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;John.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Mar 2002 18:11:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693997#M56161</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-03-30T18:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting string to number in ksh script?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693998#M56162</link>
      <description>&lt;BR /&gt;Thanks John, I did not even think about that possibility, but it certainly wouldn't work in that case.&lt;BR /&gt;&lt;BR /&gt;ADAM</description>
      <pubDate>Sat, 30 Mar 2002 18:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-string-to-number-in-ksh-script/m-p/2693998#M56162</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2002-03-30T18:58:56Z</dc:date>
    </item>
  </channel>
</rss>

