<?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: Does awk have a 'like' operator? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399386#M706079</link>
    <description>Hi Jamie,&lt;BR /&gt;&lt;BR /&gt;"~" is like like operator.&lt;BR /&gt;&lt;BR /&gt;awk '$1 ~ /typ/ {print $1}' data&lt;BR /&gt;&lt;BR /&gt;will print all $1's that has the string 'typ' in them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Oct 2004 12:36:33 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-10-13T12:36:33Z</dc:date>
    <item>
      <title>Does awk have a 'like' operator?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399385#M706078</link>
      <description>Wondering if there's a way to use a like operator in an if statement within awk..&lt;BR /&gt;&lt;BR /&gt;awk '{if ($1 'like' "Joh%".....&lt;BR /&gt;&lt;BR /&gt;Do I use an * wildcard or what?</description>
      <pubDate>Wed, 13 Oct 2004 12:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399385#M706078</guid>
      <dc:creator>Jamie Collins</dc:creator>
      <dc:date>2004-10-13T12:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does awk have a 'like' operator?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399386#M706079</link>
      <description>Hi Jamie,&lt;BR /&gt;&lt;BR /&gt;"~" is like like operator.&lt;BR /&gt;&lt;BR /&gt;awk '$1 ~ /typ/ {print $1}' data&lt;BR /&gt;&lt;BR /&gt;will print all $1's that has the string 'typ' in them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 12:36:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399386#M706079</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-13T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does awk have a 'like' operator?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399387#M706080</link>
      <description>also, you can use  !~ to find lines that are 'not like' the string you are searching for.</description>
      <pubDate>Wed, 13 Oct 2004 12:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399387#M706080</guid>
      <dc:creator>Bob Smith_23</dc:creator>
      <dc:date>2004-10-13T12:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Does awk have a 'like' operator?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399388#M706081</link>
      <description>We can do with awk's default function index too as,&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;awk '{ if ( index ($1,"Joh%") == 1 ) print $1 }' &lt;INPUTFILE&gt;&lt;BR /&gt;&lt;BR /&gt;Upon getting index on inputstring the Joh% will make to print $1 string there.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/INPUTFILE&gt;</description>
      <pubDate>Wed, 13 Oct 2004 17:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/does-awk-have-a-like-operator/m-p/3399388#M706081</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-13T17:00:22Z</dc:date>
    </item>
  </channel>
</rss>

