<?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: if statment in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891886#M95643</link>
    <description>seond_var=$(awk -F " " '{print $2}' ${var})&lt;BR /&gt;&lt;BR /&gt;[[ ${second_var} = "" ]]&lt;BR /&gt;then&lt;BR /&gt;echo "no second_var"&lt;BR /&gt;fi</description>
    <pubDate>Fri, 18 Mar 2005 15:45:11 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2005-03-18T15:45:11Z</dc:date>
    <item>
      <title>if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891880#M95637</link>
      <description>please help&lt;BR /&gt;&lt;BR /&gt;this line return error. idon't know how to write it&lt;BR /&gt;&lt;BR /&gt;------------------------------------&lt;BR /&gt;if [ $var1 | awk ' {print $2} ' = " " ]&lt;BR /&gt;then&lt;BR /&gt;echo "anything"&lt;BR /&gt;fi&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;i want to check if second part of variable is empty?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2005 15:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891880#M95637</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-03-18T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891881#M95638</link>
      <description>what does variable look like??</description>
      <pubDate>Fri, 18 Mar 2005 15:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891881#M95638</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-18T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891882#M95639</link>
      <description>From what you say there are two parts to the variable? Is it not possible to have 2 variables and just test the seconf one?</description>
      <pubDate>Fri, 18 Mar 2005 15:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891882#M95639</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-03-18T15:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891883#M95640</link>
      <description>var1 contain this tring&lt;BR /&gt;---------------------&lt;BR /&gt;tabname anyname&lt;BR /&gt;---------------------&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Mar 2005 15:40:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891883#M95640</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-03-18T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891884#M95641</link>
      <description>try &lt;BR /&gt;&lt;BR /&gt;echo "$var1" before the pipe?</description>
      <pubDate>Fri, 18 Mar 2005 15:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891884#M95641</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-03-18T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891885#M95642</link>
      <description>Actually, don't htink that helps because if the seond part is blank then no $2 will get set.&lt;BR /&gt;&lt;BR /&gt;Sorry</description>
      <pubDate>Fri, 18 Mar 2005 15:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891885#M95642</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-03-18T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891886#M95643</link>
      <description>seond_var=$(awk -F " " '{print $2}' ${var})&lt;BR /&gt;&lt;BR /&gt;[[ ${second_var} = "" ]]&lt;BR /&gt;then&lt;BR /&gt;echo "no second_var"&lt;BR /&gt;fi</description>
      <pubDate>Fri, 18 Mar 2005 15:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891886#M95643</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-18T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891887#M95644</link>
      <description>many thankx&lt;BR /&gt;but i tryed to execute it in one statment&lt;BR /&gt;&lt;BR /&gt;if i find solution i will tell u&lt;BR /&gt;&lt;BR /&gt;thankx again</description>
      <pubDate>Fri, 18 Mar 2005 15:50:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891887#M95644</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-03-18T15:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891888#M95645</link>
      <description>This should do it:&lt;BR /&gt;&lt;BR /&gt;if [ "$(echo ${var1} | awk '{print $2}')" = "" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "anything"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 18 Mar 2005 16:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891888#M95645</guid>
      <dc:creator>Tony Contratto</dc:creator>
      <dc:date>2005-03-18T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891889#M95646</link>
      <description>Hi Kamal,&lt;BR /&gt;&lt;BR /&gt;Try this I could work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if (test $var1 = `awk '{print $2}'`=" ")&lt;BR /&gt;      than echo "anything"&lt;BR /&gt;     exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Taulant</description>
      <pubDate>Sat, 19 Mar 2005 09:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891889#M95646</guid>
      <dc:creator>Taulant Shamo</dc:creator>
      <dc:date>2005-03-19T09:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891890#M95647</link>
      <description>many thankx for all&lt;BR /&gt;its work now</description>
      <pubDate>Sat, 19 Mar 2005 09:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891890#M95647</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-03-19T09:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: if statment</title>
      <link>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891891#M95648</link>
      <description>Kamal,&lt;BR /&gt;&lt;BR /&gt;I better to assign points to people that helps you!!!&lt;BR /&gt;&lt;BR /&gt;You take their time for solving your problem. Just submit points before you close.&lt;BR /&gt;&lt;BR /&gt;bye</description>
      <pubDate>Fri, 13 Apr 2007 11:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/if-statment/m-p/4891891#M95648</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-04-13T11:42:32Z</dc:date>
    </item>
  </channel>
</rss>

