<?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: awk difference (RE) between HP-UX and Linux in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5549919#M640320</link>
    <description>&lt;P&gt;hello,&lt;BR /&gt;&lt;BR /&gt;here my solution of perl ( instead of awk ) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DB_TOKEN=DB_DEF perl -lan -F"#" -e'if($F[0] =~ /^\S+$ENV{DB_TOKEN}/) {print "$F[1] $F[4]"}' file&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;perl -F"#" -lane '$s=shift @F;if($s=~ /^\S+'$DB_TOKEN'/) {print "@F"}'&amp;nbsp;file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with a little help of perl examples&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2012 14:15:28 GMT</pubDate>
    <dc:creator>support_billa</dc:creator>
    <dc:date>2012-02-13T14:15:28Z</dc:date>
    <item>
      <title>awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5497213#M640306</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i detect following awk difference between HP-UX and Linux SLES-11&lt;/P&gt;&lt;P&gt;i want to find a entry with RE :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file:&lt;/P&gt;&lt;P&gt;;;DB_DEF#field1#field2#FS#junk#junk#junk#junk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HPUX OK:&lt;/P&gt;&lt;P&gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (+DB_TOKEN) { print $1,$2,$3,$4 }' file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LINUX :&lt;/P&gt;&lt;P&gt;it found all other entries of the file, but not the exact entry .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think my RE is OK ? is it not a standard RE ?&lt;/P&gt;&lt;P&gt;when i change from " (+DB_TOKEN)" to "DB_TOKEN" it works for Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 16:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5497213#M640306</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-16T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5497281#M640307</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AWK syntaxes in different from HPUX and LINUX, there is nothing unusual in this behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 17:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5497281#M640307</guid>
      <dc:creator>Nighwish</dc:creator>
      <dc:date>2012-01-16T17:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498037#M640308</link>
      <description>&lt;P&gt;There are several versions of awk.&amp;nbsp; Many years ago, HP replaced standard awl with nawk but left the name the same. And then there's gawk -- which may be named awk too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some useful references. The first explains a lot of the design differences, the second is a great cheat sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.catonmat.net/blog/awk-nawk-and-gawk-cheat-sheet/"&gt;http://www.catonmat.net/blog/awk-nawk-and-gawk-cheat-sheet/&lt;/A&gt;&lt;BR /&gt;&lt;A target="_blank" href="http://www.catonmat.net/download/awk.cheat.sheet.pdf"&gt;http://www.catonmat.net/download/awk.cheat.sheet.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 03:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498037#M640308</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2012-01-17T03:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498263#M640309</link>
      <description>All good explanations. I just wanted to throw in that you can download gawk from the Porting and Archive Centre (it installs to a different location than the system awk) and that should be nearly if not completely identical to the way it works in Linux</description>
      <pubDate>Tue, 17 Jan 2012 05:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498263#M640309</guid>
      <dc:creator>BowlesCR</dc:creator>
      <dc:date>2012-01-17T05:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498623#M640310</link>
      <description>&lt;PRE&gt;AWK syntaxes in different from HPUX and LINUX, there is nothing unusual in this behavior.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;in my case : what is the right behavior ? HPUX or LINUX ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use due to this thread below a lot of RE of AWK,&lt;/P&gt;&lt;P&gt;in the last part of the thread are good examples of James and Dennis :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/replace-a-string-with-quot-quot-in-a-variable/m-p/4792511#M30724"&gt;replace a string with "/" in a variable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 08:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498623#M640310</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-17T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498853#M640311</link>
      <description>&lt;P&gt;i think LINUX awk is gawk, also i tested HPUX gawk and with the info of the thread awk is nawk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Info about Version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LINUX: Version&lt;BR /&gt;awk -W version&lt;BR /&gt;GNU Awk 3.1.8&lt;BR /&gt;&lt;BR /&gt;HPUX: Version&lt;BR /&gt;gawk -W version&lt;BR /&gt;GNU Awk 3.1.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;awk -W version isn't allowed in HPUX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test of LINUX and HPUX, different using of RE (+ or .* )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LINUX: OK&lt;BR /&gt;DB_TOKEN=DB_DEF&lt;BR /&gt;awk -F'#' '$1 ~ /^.*'"${DB_TOKEN}"'$/ { print $1,$2,$3,$4 }' file&lt;BR /&gt;&lt;BR /&gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;BR /&gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ DB_TOKEN { print $1,$2,$3,$4 }' file&lt;BR /&gt;&lt;BR /&gt;LINUX:&amp;nbsp; NOTOK&lt;BR /&gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (+DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;BR /&gt;&lt;BR /&gt;HPUX: OK&lt;BR /&gt;DB_TOKEN=DB_DEF&lt;BR /&gt;awk -F'#' '$1 ~ /^.*'"${DB_TOKEN}"'$/ { print $1,$2,$3,$4 }' file&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/gawk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;BR /&gt;/usr/local/bin/gawk -v DB_TOKEN="DB_DEF" -F# '$1 ~ DB_TOKEN&amp;nbsp;&amp;nbsp; { print $1,$2,$3,$4 }' file&lt;BR /&gt;HPUX: NOT OK&lt;BR /&gt;/usr/local/bin/gawk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (+DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498853#M640311</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-17T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498989#M640312</link>
      <description>&lt;P&gt;i found a agreement between LINUX and HPUX :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (".+"DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the options of ERE of gawk isn't possible to use for awk HPUX like r{n,m}&amp;nbsp; with possix :-((&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Info:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[abc...]&amp;nbsp;&amp;nbsp; character list, matches any of the characters abc....&lt;BR /&gt;[^abc...]&amp;nbsp; negated character list, matches any character except abc....&lt;BR /&gt;r1|r2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alternation: matches either r1 or r2.&lt;BR /&gt;r1r2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenation: matches r1, and then r2.&lt;BR /&gt;r+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matches one or more r's.&lt;BR /&gt;r*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matches zero or more r's.&lt;BR /&gt;r?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matches zero or one r's.&lt;BR /&gt;(r)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grouping: matches r.&lt;BR /&gt;r{n}&lt;BR /&gt;r{n,m}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One or two numbers inside braces denote an interval expression.&amp;nbsp; If&amp;nbsp; there&amp;nbsp; is&amp;nbsp; one &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; number&amp;nbsp; in&amp;nbsp; the braces,&amp;nbsp; the preceding regular expression r is repeated n times. &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If there are two numbers separated by a comma, r is repeated n to m times.&amp;nbsp; If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; there is one number followed&amp;nbsp; by&amp;nbsp; a&amp;nbsp; comma,&amp;nbsp; then&amp;nbsp; r&amp;nbsp; is repeated at least n times.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval&amp;nbsp; expressions are only available if either --posix or --re-interval is&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; specified on the command line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5498989#M640312</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-17T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5499725#M640314</link>
      <description>&lt;P&gt;...but the options of ERE of gawk isn't possible to use for awk HPUX like r{n,m}&amp;nbsp; with possix :-((&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The POSIX shell is no different than ksh or bash. Braces (and parenthesis and semicolons, etc) have special meaning to the shell and must therefore be excluded from shell processing. There is no problem at all if the awk statements are in an awk script, but on the command line, you must must single quotes (apostrophes) to turn off shell processing.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 18:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5499725#M640314</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2012-01-17T18:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5499731#M640315</link>
      <description>&lt;P&gt;&amp;gt;awk -v DB_TOKEN="DB_DEF" -F# '$1 ~ (".+" DB_TOKEN) { print $1,$2,$3,$4 }' file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this is required since you need to do string concatenation and you need that "." before the "+".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;but the options of ERE of gawk isn't possible to use for awk HP-UX like r{n,m}&amp;nbsp; with POSIX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an example where it fails?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 18:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5499731#M640315</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-17T18:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5501481#M640316</link>
      <description>&lt;P&gt;&amp;gt;I think my RE is OK?&amp;nbsp; Is it not a standard RE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, this is a bogus ERE, in that it most likely won't do anything useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I assume this is required since you need to do string concatenation and you need that "." before the "+".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; This is the problem. Error recovery is different between the two versions of awk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears HP-UX's version is broken.&amp;nbsp; The Posix standard says to convert a string to a number it should use atof(3).&amp;nbsp; Unfortunately it doesn't mention clearly if the string is bogus, you get 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see this if you change awk to add:&lt;/P&gt;&lt;P&gt;BEGIN { print "ERE:", (+DB_TOKEN) }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For HP-UX, it seems to ignore the unary "+" as do nothing and it prints: DB_DEF&lt;/P&gt;&lt;P&gt;For gawk, it honors unary "+" and converts the bogus string and prints: 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you want your ERE to skip one or more chars, you need: (".+" DB_TOKEN)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 05:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5501481#M640316</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-19T05:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5501589#M640317</link>
      <description>&lt;P&gt;Hello Dennis ,&lt;BR /&gt;&lt;BR /&gt;thank you very much about your useful and helpful informations&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Do you have an example where it fails?&lt;BR /&gt;&amp;gt;but the options of ERE of gawk isn't possible to use for awk HPUX like r{n,m}&amp;nbsp; with possix&lt;BR /&gt;&lt;BR /&gt;when you try to use HPUX awk and LINUX awk / HPUX gawk, then you get syntax errors !&lt;BR /&gt;&lt;BR /&gt;&amp;gt; No, this is a bogus ERE, in that it most likely won't do anything useful.&lt;BR /&gt;&lt;BR /&gt;so it works, but i have no guarantee that this ERE will work in the future , right ?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You can see this if you change awk to add:&lt;BR /&gt;&amp;gt;BEGIN { print "ERE:", (+DB_TOKEN) }&lt;BR /&gt;&lt;BR /&gt;i tested it , thank.&lt;BR /&gt;&lt;BR /&gt;my last question ( i spoke with other colleagues ) :&lt;BR /&gt;&lt;BR /&gt;is better to use "perl" with "ERE" for different plattforms ?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5501589#M640317</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-19T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5502409#M640318</link>
      <description>&lt;P&gt;&amp;gt;when you try to use HP-UX awk and LINUX awk / HP-UX gawk, then you get syntax errors!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an example of that?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;so it works, but I have no guarantee that this ERE will work in the future, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, it doesn't really work.&amp;nbsp; Your ERE is bogus.&amp;nbsp; A leading "+" doesn't make sense for a ERE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;is better to use "perl" with "ERE" for different platforms?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, if you have valid ERE, it should work in both cases.&lt;/P&gt;&lt;P&gt;But you may have a valid point, perl may be more portable and doesn't have the HP-UX awk limitations.&lt;/P&gt;&lt;P&gt;And matching has more choices.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 20:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5502409#M640318</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-19T20:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5503065#M640319</link>
      <description>&lt;P&gt;you will get examples next week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5503065#M640319</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-01-20T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: awk difference (RE) between HP-UX and Linux</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5549919#M640320</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;&lt;BR /&gt;here my solution of perl ( instead of awk ) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DB_TOKEN=DB_DEF perl -lan -F"#" -e'if($F[0] =~ /^\S+$ENV{DB_TOKEN}/) {print "$F[1] $F[4]"}' file&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;perl -F"#" -lane '$s=shift @F;if($s=~ /^\S+'$DB_TOKEN'/) {print "@F"}'&amp;nbsp;file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with a little help of perl examples&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:15:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-difference-re-between-hp-ux-and-linux/m-p/5549919#M640320</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2012-02-13T14:15:28Z</dc:date>
    </item>
  </channel>
</rss>

