<?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: parse in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768019#M895585</link>
    <description>man basename</description>
    <pubDate>Fri, 19 Jul 2002 14:19:11 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2002-07-19T14:19:11Z</dc:date>
    <item>
      <title>parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768014#M895580</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;Suppose I have the following strings:&lt;BR /&gt;test.yara.Z&lt;BR /&gt;and&lt;BR /&gt;test.yara&lt;BR /&gt;&lt;BR /&gt;How can determine whether there is a something else specified after .yara? So, in the first case, there is another extension specified after yara?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 19 Jul 2002 14:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768014#M895580</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-07-19T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768015#M895581</link>
      <description>From where? perl, sed, awk, sh, ksh, tcsh, csh, ...</description>
      <pubDate>Fri, 19 Jul 2002 14:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768015#M895581</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-07-19T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768016#M895582</link>
      <description>Simple bourne sh!</description>
      <pubDate>Fri, 19 Jul 2002 14:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768016#M895582</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-07-19T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768017#M895583</link>
      <description>tests $F for 2 dots + numbers &lt;BR /&gt;ie: 1.2.3 and returns VALUE=1:&lt;BR /&gt;&lt;BR /&gt;echo $F | grep -E -q "^[0-9]+\.[0-9]+\.[0-9]+$" &amp;amp;&amp;amp; VALUE=1&lt;BR /&gt;&lt;BR /&gt;tests for just number:&lt;BR /&gt;echo $F | grep -E -q "^[0-9]+$" &amp;amp;&amp;amp; VALUE=2&lt;BR /&gt;&lt;BR /&gt;I'm sure you can work on it to remove the [0-9] for files.&lt;BR /&gt;&lt;BR /&gt;This tests for extension xml:&lt;BR /&gt;&lt;BR /&gt;if [ "${_Input#*.}" != "xml" ]; then&lt;BR /&gt;  echo "xml"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Hope that's a quick start&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 19 Jul 2002 14:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768017#M895583</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-07-19T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768018#M895584</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Perhaps something like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;X=`echo ${1##*.}`&lt;BR /&gt;if [ "$X" != "yara" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "...unexpected basename"&lt;BR /&gt;else&lt;BR /&gt;  echo "...basename OK"&lt;BR /&gt;fi&lt;BR /&gt;#.end.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 19 Jul 2002 14:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768018#M895584</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-07-19T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768019#M895585</link>
      <description>man basename</description>
      <pubDate>Fri, 19 Jul 2002 14:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/parse/m-p/2768019#M895585</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-07-19T14:19:11Z</dc:date>
    </item>
  </channel>
</rss>

