<?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: seperate ioscan device file names with awk ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492895#M704693</link>
    <description>You can also use&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnkH0/12/0/0 | grep rmt | awk '{printf "%s\n%s\n%s\n%s\n", $1,$2,$3,$4}'</description>
    <pubDate>Thu, 24 Feb 2005 12:20:49 GMT</pubDate>
    <dc:creator>Rajeev Tyagi</dc:creator>
    <dc:date>2005-02-24T12:20:49Z</dc:date>
    <item>
      <title>seperate ioscan device file names with awk ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492892#M704690</link>
      <description>I want to capture each single device file name in a variable from ioscan -fnk with awk.&lt;BR /&gt;&lt;BR /&gt;ioscan varies the output to fit the window, so sometimes he has 2 columns and sometimes he has three columns, etc.  I want to get all the values in 1 column.&lt;BR /&gt;&lt;BR /&gt;Look what happens:&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnkH0/12/0/0 | grep rmt | awk 'OFS="\n"; {print $0}&amp;gt;&lt;BR /&gt;                            /dev/rmt/68m            /dev/rmt/68mnb          /dev/rmt/c39t0d2BESTn&lt;BR /&gt;                            /dev/rmt/68m            /dev/rmt/68mnb          /dev/rmt/c39t0d2BESTn&lt;BR /&gt;                            /dev/rmt/68mb           /dev/rmt/c39t0d2BEST    /dev/rmt/c39t0d2BESTnb&lt;BR /&gt;                            /dev/rmt/68mb           /dev/rmt/c39t0d2BEST    /dev/rmt/c39t0d2BESTnb&lt;BR /&gt;                            /dev/rmt/68mn           /dev/rmt/c39t0d2BESTb&lt;BR /&gt;                            /dev/rmt/68mn           /dev/rmt/c39t0d2BESTb&lt;BR /&gt;                            /dev/rmt/69m            /dev/rmt/69mnb          /dev/rmt/c39t0d3BESTn&lt;BR /&gt;                            /dev/rmt/69m            /dev/rmt/69mnb          /dev/rmt/c39t0d3BESTn&lt;BR /&gt;                            /dev/rmt/69mb           /dev/rmt/c39t0d3BEST    /dev/rmt/c39t0d3BESTnb&lt;BR /&gt;                            /dev/rmt/69mb           /dev/rmt/c39t0d3BEST    /dev/rmt/c39t0d3BESTnb&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 12:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492892#M704690</guid>
      <dc:creator>Stuart Abramson</dc:creator>
      <dc:date>2005-02-24T12:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: seperate ioscan device file names with awk ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492893#M704691</link>
      <description>ioscan -fnkH0/12/0/0 | grep rmt | awk 'OFS="\n"; {print $0}'|tr " " "\n"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 12:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492893#M704691</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-02-24T12:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: seperate ioscan device file names with awk ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492894#M704692</link>
      <description>Well, that will do it, and I'll give you 10 points, but I'd like to know what's wrong with my "awk".</description>
      <pubDate>Thu, 24 Feb 2005 12:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492894#M704692</guid>
      <dc:creator>Stuart Abramson</dc:creator>
      <dc:date>2005-02-24T12:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: seperate ioscan device file names with awk ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492895#M704693</link>
      <description>You can also use&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnkH0/12/0/0 | grep rmt | awk '{printf "%s\n%s\n%s\n%s\n", $1,$2,$3,$4}'</description>
      <pubDate>Thu, 24 Feb 2005 12:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492895#M704693</guid>
      <dc:creator>Rajeev Tyagi</dc:creator>
      <dc:date>2005-02-24T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: seperate ioscan device file names with awk ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492896#M704694</link>
      <description>Stuart,&lt;BR /&gt;&lt;BR /&gt;Here you are printing whole line with $0 variable your output field seperator OFS=\n will be applicable to new line. If you change your awk command to&lt;BR /&gt;ioscan -fnkH0/12/0/0 | grep rmt | awk 'OFS="\n"; {print $1,$2,$3,$4}' &lt;BR /&gt;&lt;BR /&gt;OFS will work for each parameter in print command.</description>
      <pubDate>Thu, 24 Feb 2005 12:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seperate-ioscan-device-file-names-with-awk/m-p/3492896#M704694</guid>
      <dc:creator>Rajeev Tyagi</dc:creator>
      <dc:date>2005-02-24T12:26:57Z</dc:date>
    </item>
  </channel>
</rss>

