<?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 Question for Ramesh  .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579588#M920761</link>
    <description>Alright Ramesh &lt;BR /&gt;last night . well should I say late last night you gave a response to a shell script question &lt;BR /&gt;&lt;BR /&gt;cat $in_file | while read COL1 COL2 &lt;BR /&gt;do &lt;BR /&gt;command -a $COL1 -b $COL2 &lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Now my question is can you give me an example of what this output will look like or how I would use this in a script??&lt;BR /&gt;&lt;BR /&gt;Richard &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Sep 2001 12:58:47 GMT</pubDate>
    <dc:creator>someone_4</dc:creator>
    <dc:date>2001-09-14T12:58:47Z</dc:date>
    <item>
      <title>Question for Ramesh  ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579588#M920761</link>
      <description>Alright Ramesh &lt;BR /&gt;last night . well should I say late last night you gave a response to a shell script question &lt;BR /&gt;&lt;BR /&gt;cat $in_file | while read COL1 COL2 &lt;BR /&gt;do &lt;BR /&gt;command -a $COL1 -b $COL2 &lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Now my question is can you give me an example of what this output will look like or how I would use this in a script??&lt;BR /&gt;&lt;BR /&gt;Richard &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2001 12:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579588#M920761</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-14T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question for Ramesh  ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579589#M920762</link>
      <description>The output from that will depend greatly on what command is run.  Who knows what the output will look like.&lt;BR /&gt;&lt;BR /&gt;The person asking the question asked how to read in two strings each line in a file where each line had 2 values and then pass those values to a command.  There were no details given as to what command he wanted to run.&lt;BR /&gt;&lt;BR /&gt;You could do this for any command that you pass parameters to.&lt;BR /&gt;&lt;BR /&gt;File to read:&lt;BR /&gt;&lt;BR /&gt;-ld /dir&lt;BR /&gt;-la /dir2&lt;BR /&gt;&lt;BR /&gt;cat $infile | while read COL1 COL2&lt;BR /&gt;do&lt;BR /&gt;ls $COL1 $COL2&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;That would then do an 'ls -ld /dir' and an 'ls -la /dir2'&lt;BR /&gt;&lt;BR /&gt;Make sense?</description>
      <pubDate>Fri, 14 Sep 2001 13:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579589#M920762</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-09-14T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question for Ramesh  ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579590#M920763</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can use this in various ways,&lt;BR /&gt;&lt;BR /&gt;Simple eg:&lt;BR /&gt;Lets say you want to get the LVname and LV extents in a physical disk&lt;BR /&gt;&lt;BR /&gt;pvdisplay -v /dev/dsk/c0t1d0 | awk '{print $1,$2}' |grep "/dev/" | while read LVNAME LVEXT&lt;BR /&gt;&lt;BR /&gt;Now this gives the name of the LV and the LE of the LV on this disk,&lt;BR /&gt;&lt;BR /&gt;another example&lt;BR /&gt;cat /etc/hosts | grep -v "^#" | while read IPADDR HOSTNAME ALIAS&lt;BR /&gt;do&lt;BR /&gt;echo "$IPADDR:$HOSTNAME:$ALIAS"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;(This prints the your host table entries seperated by colon, and you can now do whatever you want with each of these variables in your script).&lt;BR /&gt;&lt;BR /&gt;Another example,&lt;BR /&gt;ioscan -kfnC disk |grep dev |while read DISK RDISK&lt;BR /&gt;&lt;BR /&gt;Does that answer your question?&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
      <pubDate>Fri, 14 Sep 2001 13:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579590#M920763</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-09-14T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question for Ramesh  ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579591#M920764</link>
      <description>Thats good stuff .. I like it ! &lt;BR /&gt;&lt;BR /&gt;What cleared it up was patricks example&lt;BR /&gt;and your  /etc/hosts example. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Richard</description>
      <pubDate>Fri, 14 Sep 2001 14:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-for-ramesh/m-p/2579591#M920764</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-14T14:54:30Z</dc:date>
    </item>
  </channel>
</rss>

