<?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: grep -E using variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190023#M323552</link>
    <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;# a=paula; b=beto&lt;BR /&gt;# grep -e $a -e $b arcj_prueba&lt;BR /&gt;paula&lt;BR /&gt;beto &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 30 Apr 2008 21:59:38 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-04-30T21:59:38Z</dc:date>
    <item>
      <title>grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190020#M323549</link>
      <description>HOw can i fix the following?&lt;BR /&gt;&lt;BR /&gt;$ cat &amp;gt; arch_prueba&lt;BR /&gt;dani&lt;BR /&gt;paula&lt;BR /&gt;pedro&lt;BR /&gt;beto&lt;BR /&gt;$ grep -E '$a | $b' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;$ grep -E '"$a|$b' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;$ grep -E '`echo $a`|`echo $b`' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;&lt;BR /&gt;please let me know.</description>
      <pubDate>Wed, 30 Apr 2008 21:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190020#M323549</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-04-30T21:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190021#M323550</link>
      <description>i forgot tell i did the followinig:&lt;BR /&gt;&lt;BR /&gt;$ a=dani&lt;BR /&gt;$ b=beto&lt;BR /&gt;&lt;BR /&gt;$ cat &amp;gt; arch_prueba&lt;BR /&gt;dani&lt;BR /&gt;paula&lt;BR /&gt;pedro&lt;BR /&gt;beto&lt;BR /&gt;$ grep -E '$a | $b' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;$ grep -E '"$a|$b' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;$ grep -E '`echo $a`|`echo $b`' arch_prueba&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;how can i fix it?</description>
      <pubDate>Wed, 30 Apr 2008 21:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190021#M323550</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-04-30T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190022#M323551</link>
      <description>Really i watn to do:&lt;BR /&gt;&lt;BR /&gt;a=`date "+%b %d"`&lt;BR /&gt;aa=`perl -MPOSIX -le 'print strftime "%b %d",localtime(time-86400)'`&lt;BR /&gt;&lt;BR /&gt;$ grep -E '$a|$aa' /var/adm/syslog/syslog.log&lt;BR /&gt;grep: $ anchor not at end of pattern.&lt;BR /&gt;&lt;BR /&gt;please help me !!!&lt;BR /&gt;thanks in advance.</description>
      <pubDate>Wed, 30 Apr 2008 21:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190022#M323551</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-04-30T21:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190023#M323552</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;# a=paula; b=beto&lt;BR /&gt;# grep -e $a -e $b arcj_prueba&lt;BR /&gt;paula&lt;BR /&gt;beto &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Apr 2008 21:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190023#M323552</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-04-30T21:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190024#M323553</link>
      <description>thanks a lot &lt;BR /&gt;it worked :&lt;BR /&gt;&lt;BR /&gt;grep -e "$a" -e "$aa" /var/adm/lp/log&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Apr 2008 22:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190024#M323553</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2008-04-30T22:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: grep -E using variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190025#M323554</link>
      <description>Hi (again) Manuales:&lt;BR /&gt;&lt;BR /&gt;Although I prefer the '-e' with the separate operands, had you used double quotes, you could have used '-E' :&lt;BR /&gt;&lt;BR /&gt;# a=paula; b=beto&lt;BR /&gt;# grep -E "$a|$b" arch_prueba&lt;BR /&gt;paula&lt;BR /&gt;beto&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Apr 2008 22:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-e-using-variables/m-p/4190025#M323554</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-04-30T22:15:30Z</dc:date>
    </item>
  </channel>
</rss>

