<?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: exporting variables from awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153812#M726499</link>
    <description>Thanks dennis,&lt;BR /&gt;it looks better with a while, but what looks really better for me is "$(&amp;lt; fullnames)"  insteed the horrible `cat $fullnames`.&lt;BR /&gt;in a deeper way, what are the differences between both?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you're right, find won't return me duplicated...&lt;BR /&gt;&lt;BR /&gt;but i'll cut string routes before doing comparison</description>
    <pubDate>Mon, 10 Mar 2008 01:54:11 GMT</pubDate>
    <dc:creator>Nicolás</dc:creator>
    <dc:date>2008-03-10T01:54:11Z</dc:date>
    <item>
      <title>exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153800#M726487</link>
      <description>Hi there!&lt;BR /&gt;&lt;BR /&gt;I'm trying to split a string in an unknown number of strings separated by spaces.&lt;BR /&gt;&lt;BR /&gt;I'm trying with awk, but i can't export variables back to shell.&lt;BR /&gt;&lt;BR /&gt;this is what i have, it doesn't work:&lt;BR /&gt;&lt;BR /&gt;str='one two three four five six'&lt;BR /&gt;i=0&lt;BR /&gt;awk -v string="$str" 'BEGIN { split(string,a); for(i in a) print a[i]; }' | \&lt;BR /&gt;while read name&lt;BR /&gt;do&lt;BR /&gt;filename[$i]=$name&lt;BR /&gt;echo ${filename[$i]}&lt;BR /&gt;let i=$i+1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know i can append awk output in a file and then do&lt;BR /&gt;cat filename | \&lt;BR /&gt;while read name&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;but i don't want to use  external files. &lt;BR /&gt;&lt;BR /&gt;i also know about variable=`awk statement`&lt;BR /&gt;but this lastone can't return me more than one variable.&lt;BR /&gt;&lt;BR /&gt;any idea?&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 02:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153800#M726487</guid>
      <dc:creator>Nicolás</dc:creator>
      <dc:date>2008-03-03T02:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153801#M726488</link>
      <description>&lt;!--!*#--&gt;&amp;gt;but i can't export variables back to shell.&lt;BR /&gt;&amp;gt;it doesn't work:&lt;BR /&gt;&lt;BR /&gt;You don't explain why it fails and what you want to do?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I know i can append awk output in a file and then do&lt;BR /&gt;&lt;BR /&gt;This is not much different than the pipe except you don't need a name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;i also know about variable=$(awk statement)&lt;BR /&gt;but this last one can't return me more than one variable.&lt;BR /&gt;&lt;BR /&gt;It returns you a string.  Which you can fiddle with.&lt;BR /&gt;&lt;BR /&gt;The standard trick is to return a command and use eval on it:&lt;BR /&gt;eval $(echo export x=1 b=2)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;str='one two three four five six'&lt;BR /&gt;&lt;BR /&gt;You could use:&lt;BR /&gt;set -A filename $str&lt;BR /&gt;&lt;BR /&gt;Or you could do:&lt;BR /&gt;for i in $str; do&lt;BR /&gt;   echo $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 04:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153801#M726488</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-03T04:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153802#M726489</link>
      <description>&lt;!--!*#--&gt;Firstly it is not possible for anything to export variables to the parent shell (at least not without being extremely "hacky" about it).&lt;BR /&gt;&lt;BR /&gt;To me, I think perl is your answer here but if you don't like it perhaps it would be simpler to change the "while" to a "for" loop and cycle through the output like this.&lt;BR /&gt;&lt;BR /&gt;for $result in `awk -v string="$str" 'BEGIN { split(string,a); for(i in a) print a[i]; }'`&lt;BR /&gt;do&lt;BR /&gt;    filename[$i]=$result&lt;BR /&gt;    etc etc etc&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;You might want to look at the venerable "expr" with a nice regular expression command instead of awk for something like this too.</description>
      <pubDate>Mon, 03 Mar 2008 06:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153802#M726489</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2008-03-03T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153803#M726490</link>
      <description>&lt;!--!*#--&gt;If you only need to populate an array of whitespace delimited tokens,&lt;BR /&gt;why the "awk" awkwardness?&lt;BR /&gt;The Posix shell can handle this&lt;BR /&gt;&lt;BR /&gt;$ myvirtues="lust gluttony    greed    sloth  wrath  envy\npride"&lt;BR /&gt;&lt;BR /&gt;$ set -A sins $(echo $myvirtues)&lt;BR /&gt;&lt;BR /&gt;$ echo ${#sins[*]}                                               &lt;BR /&gt;7&lt;BR /&gt; &lt;BR /&gt;$ echo ${sins[*]} &lt;BR /&gt;lust gluttony greed sloth wrath envy pride&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 10:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153803#M726490</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-03-03T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153804#M726491</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Adding a bit to Ralph's virtues:&lt;BR /&gt;&lt;BR /&gt;# myvirtues=" myvirtues="lust gluttony    greed    sloth  wrath  envy\npride\nimpatience\nlaziness\nhubris"&lt;BR /&gt;&lt;BR /&gt;# echo ${myvirtures}|xargs&lt;BR /&gt;lust gluttony greed sloth wrath envy pride impatience laziness hubris&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Mar 2008 13:18:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153804#M726491</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-03T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153805#M726492</link>
      <description>Ralph and James:&lt;BR /&gt;that works great on ksh, but unfourtunly i'm working on bash.&lt;BR /&gt;&lt;BR /&gt;i'll explain what i need&lt;BR /&gt;what i have to do is to look for a file and do something with it. &lt;BR /&gt;points are:&lt;BR /&gt;-I've to search in many directories&lt;BR /&gt;-I'll probably found not one but two, three or four files, with the same name but diferent extension. and perhaps some completly similar files in diferent directories&lt;BR /&gt;-I have to chose only one of those, which one? the one has not null lenght (wc -l) and the one has the higher value in a list of extension priorities&lt;BR /&gt;&lt;BR /&gt;so, my idea was to loop the dirs, and make finds with the only file mask for any dir. then get the find result in a variable, split it, and make stuff.&lt;BR /&gt;&lt;BR /&gt;but perhaps that's not the best idea.&lt;BR /&gt;time ago "somebody" used to do it like this:&lt;BR /&gt; &lt;BR /&gt; file_1=`echo $fullname | cut -d' ' -f1` &lt;BR /&gt; file_2=`echo $fullname | cut -d' ' -f2`&lt;BR /&gt;&lt;BR /&gt;but he didn't concern into the posibility have more than two filenames in the string.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Mar 2008 01:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153805#M726492</guid>
      <dc:creator>Nicolás</dc:creator>
      <dc:date>2008-03-04T01:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153806#M726493</link>
      <description>&amp;gt;that works great on ksh, but unfortunately i'm working on bash.&lt;BR /&gt;&lt;BR /&gt;(Scripts should be in sh or ksh.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;file_1=`echo $fullname | cut -d' ' -f1`&lt;BR /&gt;&amp;gt;but he didn't concern into the possibility have more than two filenames in the string.&lt;BR /&gt;&lt;BR /&gt;If they are whitespace separated then "for" or arrays should automatically separate them.</description>
      <pubDate>Tue, 04 Mar 2008 02:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153806#M726493</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-04T02:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153807#M726494</link>
      <description>&lt;!--!*#--&gt;Hi Nicolas,&lt;BR /&gt;&lt;BR /&gt;is your bash run on Linux or HP-UX?&lt;BR /&gt;&lt;BR /&gt;Btw, bash can equally well handle arrays&lt;BR /&gt;like hpux-sh or ksh.&lt;BR /&gt;It only has a slightly deviating syntax&lt;BR /&gt;(a peek at man bash always helps ;-)&lt;BR /&gt;&lt;BR /&gt;Because we haven't installed Bash on our HP-UX boxes (simply no need for it there)&lt;BR /&gt;I am running this on Linux.&lt;BR /&gt;&lt;BR /&gt;$ uname&lt;BR /&gt;Linux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ echo $BASH_VERSION&lt;BR /&gt;3.1.17(1)-release&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To stick with James' extended set of virtues&lt;BR /&gt;(btw. I would have thought that laziness was covered by sloth, and hubris by pride?)&lt;BR /&gt;&lt;BR /&gt;$ myvirtues=" myvirtues="lust gluttony greed sloth wrath envy\npride\nimpatience\nlaziness\nhubris"&lt;BR /&gt;&lt;BR /&gt;as I'm doing this on Linux I need to cater the escape option along with the echo command (omit on hpux)&lt;BR /&gt;&lt;BR /&gt;$ sins=($(echo -e "$myvirtues"))&lt;BR /&gt;&lt;BR /&gt;$ echo ${#sins[*]}&lt;BR /&gt;10&lt;BR /&gt;&lt;BR /&gt;$ echo ${sins[*]}&lt;BR /&gt;lust gluttony greed sloth wrath envy pride impatience laziness hubris&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But this doesn't help you much, I suppose?&lt;BR /&gt;&lt;BR /&gt;Apropos, the GNU find available on Linux&lt;BR /&gt;has a nifty -print0 option,&lt;BR /&gt;which separates the output records by \0&lt;BR /&gt;so that find can also cope with (Unix)unusual file names that contain whitespace etc.</description>
      <pubDate>Tue, 04 Mar 2008 16:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153807#M726494</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-03-04T16:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153808#M726495</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;And I would add that the use of 'xargs' applies to the Bash environment too:&lt;BR /&gt;&lt;BR /&gt;$ virtues="   laziness\timpatience       hubris\nare\nvirtures"&lt;BR /&gt;$ echo "${virtues}"&lt;BR /&gt;   laziness     impatience       hubris&lt;BR /&gt;are&lt;BR /&gt;virtures&lt;BR /&gt;$ values=$(echo "${virtues}"|xargs)&lt;BR /&gt;$ echo ${values}&lt;BR /&gt;laziness impatience hubris are virtures&lt;BR /&gt;&lt;BR /&gt;By the way, I teasingly used "hubris ~ pride" and "laziness ~ sloth" as Ralph pointed out, since these are Perl virtues he appreciates too :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 04 Mar 2008 17:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153808#M726495</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-04T17:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153809#M726496</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Ralph: Apropos, the GNU find available on Linux has a nifty -print0 option, which separates the output records by \0 so that find can also cope with (Unix)unusual file names that contain whitespace etc.&lt;BR /&gt;&lt;BR /&gt;HP-UX introduced this to 11.23 with patch: PHCO_32269.&lt;BR /&gt;&lt;BR /&gt;The 'find' command for 11.31 supports this option, too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 04 Mar 2008 18:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153809#M726496</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-04T18:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153810#M726497</link>
      <description>Ralph,&lt;BR /&gt;&lt;BR /&gt;i'm trying it on linux, but it must work on HP-UX at work.&lt;BR /&gt;&lt;BR /&gt;Yes, i have learned to handle arrays in bash. well, i'm learning it right now, trying these stuff&lt;BR /&gt;&lt;BR /&gt;matter is that i have resolved in a simple way:&lt;BR /&gt;&lt;BR /&gt;would it work on HP-UX?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for dir in $directories&lt;BR /&gt;do&lt;BR /&gt;        echo "Searching in $dir" &amp;gt;&amp;gt; $log&lt;BR /&gt;        find $dir -name "$filemask*" 1&amp;gt; fullnames 2&amp;gt; /dev/null&lt;BR /&gt;        #cat fullnames&lt;BR /&gt;        if [ -n `cat fullnames` ]; then&lt;BR /&gt;                break;&lt;BR /&gt;        fi;&lt;BR /&gt;done&lt;BR /&gt;i=0&lt;BR /&gt;flag=0&lt;BR /&gt;echo &lt;BR /&gt;while read fullname&lt;BR /&gt;do&lt;BR /&gt;        echo "Checking for posible duplicated file" &amp;gt;&amp;gt; $log&lt;BR /&gt;        for (( e=0 ; e &amp;lt;= i ; e++ ))&lt;BR /&gt;        do&lt;BR /&gt;                echo "checking file $i : $fullname iteration number: $e" &amp;gt;&amp;gt; $log&lt;BR /&gt;                 if [ "$fullname" = "${fullnames_array[$e]}" ];&lt;BR /&gt;                then&lt;BR /&gt;                        echo "$fullname number $i equals another, it's Discarded"  &amp;gt;&amp;gt; $log&lt;BR /&gt;                        flag=1&lt;BR /&gt;                else&lt;BR /&gt;                        echo "$fullname ins unique!" &amp;gt;&amp;gt; $log&lt;BR /&gt;                fi&lt;BR /&gt;        done&lt;BR /&gt;        if ((  flag == 0 ))&lt;BR /&gt;        then&lt;BR /&gt;                fullnames_array[$i]=$fullname&lt;BR /&gt;                i=$(( i + 1 ))&lt;BR /&gt;                #echo ${fullnames_array[*]}&lt;BR /&gt;                #echo "print $fullname"&lt;BR /&gt;        fi&lt;BR /&gt;done &lt;FULLNAMES&gt;&lt;/FULLNAMES&gt;echo "found files: ${fullnames_array[*]}" &amp;gt;&amp;gt; $log&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:00:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153810#M726497</guid>
      <dc:creator>Nicolás</dc:creator>
      <dc:date>2008-03-06T13:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153811#M726498</link>
      <description>&lt;!--!*#--&gt;&amp;gt;would it work on HP-UX?&lt;BR /&gt;&lt;BR /&gt;This works in ksh.  You have to replace that funny for loop by a while:&lt;BR /&gt;    for (( e=0 ; e &amp;lt;= i ; e++ ))&lt;BR /&gt;for dir in $directories; do&lt;BR /&gt;   echo "Searching in $dir" &amp;gt;&amp;gt; $log&lt;BR /&gt;   find $dir -name "$filemask*" 1&amp;gt; fullnames 2&amp;gt; /dev/null&lt;BR /&gt;   #cat fullnames&lt;BR /&gt;   if [ -n "$(&amp;lt; fullnames)" ]; then &lt;BR /&gt;      break;&lt;BR /&gt;   fi&lt;BR /&gt;done&lt;BR /&gt;i=0&lt;BR /&gt;flag=0&lt;BR /&gt;echo&lt;BR /&gt;while read fullname; do&lt;BR /&gt;   echo "Checking for possible duplicated file" &amp;gt;&amp;gt; $log&lt;BR /&gt;   (( e = 0 ))&lt;BR /&gt;   while (( e &amp;lt;= i )); do&lt;BR /&gt;      echo "checking file $i : $fullname iteration number: $e" &amp;gt;&amp;gt; $log&lt;BR /&gt;      if [ "$fullname" = "${fullnames_array[$e]}" ]; then&lt;BR /&gt;         echo "$fullname number $i equals another, it's Discarded" &amp;gt;&amp;gt; $log&lt;BR /&gt;         flag=1&lt;BR /&gt;      else&lt;BR /&gt;         echo "$fullname is unique!" &amp;gt;&amp;gt; $log&lt;BR /&gt;      fi&lt;BR /&gt;      (( e += 1 ))&lt;BR /&gt;   done&lt;BR /&gt;   if (( flag == 0 )); then&lt;BR /&gt;      fullnames_array[$i]=$fullname&lt;BR /&gt;      (( i += 1 ))&lt;BR /&gt;      #echo ${fullnames_array[*]}&lt;BR /&gt;      #echo "print $fullname"&lt;BR /&gt;   fi&lt;BR /&gt;done &amp;lt; fullnames&lt;BR /&gt;echo "found files: ${fullnames_array[*]}" &amp;gt;&amp;gt; $log&lt;BR /&gt;&lt;BR /&gt;I'm not sure why you want to check for a duplicated file, find won't return those.&lt;BR /&gt;And you can always use "sort -u" to get rid of dups.</description>
      <pubDate>Fri, 07 Mar 2008 09:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153811#M726498</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-07T09:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153812#M726499</link>
      <description>Thanks dennis,&lt;BR /&gt;it looks better with a while, but what looks really better for me is "$(&amp;lt; fullnames)"  insteed the horrible `cat $fullnames`.&lt;BR /&gt;in a deeper way, what are the differences between both?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you're right, find won't return me duplicated...&lt;BR /&gt;&lt;BR /&gt;but i'll cut string routes before doing comparison</description>
      <pubDate>Mon, 10 Mar 2008 01:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153812#M726499</guid>
      <dc:creator>Nicolás</dc:creator>
      <dc:date>2008-03-10T01:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153813#M726500</link>
      <description>Well, in the 'cat' case you fork a process to run the cat code which reads the file and pipe back line after line. In the $(&amp;lt; file) solution you tell the shell to just go read the file itself.... best I know.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Mar 2008 03:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153813#M726500</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-03-10T03:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: exporting variables from awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153814#M726501</link>
      <description>&amp;gt;it looks better with a while&lt;BR /&gt;&lt;BR /&gt;The only problem with that while is that a continue won't work, it will skip the increment.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;what are the differences between both?&lt;BR /&gt;&lt;BR /&gt;Besides what Hein said, it helps you in a catless style of scripting.  You really only need cat(1) in a few cases, multiple inputs, 2  GB limitations or copying a file to stdout/stderr.</description>
      <pubDate>Mon, 10 Mar 2008 04:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exporting-variables-from-awk/m-p/4153814#M726501</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-10T04:10:43Z</dc:date>
    </item>
  </channel>
</rss>

