<?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 newfs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483296#M213697</link>
    <description>Does anyone know how I would take a file like&lt;BR /&gt;/dev/vg02/data &lt;BR /&gt;/dev/vg02/data2 &lt;BR /&gt;/dev/vg02/data3 &lt;BR /&gt;/dev/ora/lvol1&lt;BR /&gt;&lt;BR /&gt;and extract it so I could replace the logical volume with the r before the logical volume so I could use this for an input to a newfs command no matter what the volume group name is.</description>
    <pubDate>Thu, 10 Feb 2005 16:26:33 GMT</pubDate>
    <dc:creator>Donald C Nelson</dc:creator>
    <dc:date>2005-02-10T16:26:33Z</dc:date>
    <item>
      <title>newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483296#M213697</link>
      <description>Does anyone know how I would take a file like&lt;BR /&gt;/dev/vg02/data &lt;BR /&gt;/dev/vg02/data2 &lt;BR /&gt;/dev/vg02/data3 &lt;BR /&gt;/dev/ora/lvol1&lt;BR /&gt;&lt;BR /&gt;and extract it so I could replace the logical volume with the r before the logical volume so I could use this for an input to a newfs command no matter what the volume group name is.</description>
      <pubDate>Thu, 10 Feb 2005 16:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483296#M213697</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-10T16:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483297#M213698</link>
      <description>Something like this should work:&lt;BR /&gt;&lt;BR /&gt;INFILE=/xxx/yyy/myfile # your above file&lt;BR /&gt;&lt;BR /&gt;cat ${INFILE} | while read X&lt;BR /&gt;  do&lt;BR /&gt;     DIR=$(dirname ${X})&lt;BR /&gt;     LVOL=$(basename ${X})&lt;BR /&gt;     RLVOL="${DIR}/r${LVOL}"&lt;BR /&gt;     echo "Full raw volume = ${RLVOL}"&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;man dirname, basename for details.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Feb 2005 16:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483297#M213698</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-10T16:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483298#M213699</link>
      <description>Thanks Clay, that was it.</description>
      <pubDate>Thu, 10 Feb 2005 16:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483298#M213699</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-10T16:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483299#M213700</link>
      <description>dude, give Clay the points assignment..</description>
      <pubDate>Fri, 11 Feb 2005 23:45:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483299#M213700</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-02-11T23:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483300#M213701</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a hidden next level for Olympians...?  :)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
      <pubDate>Sat, 12 Feb 2005 09:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483300#M213701</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-02-12T09:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: newfs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483301#M213702</link>
      <description>Hi Donald,&lt;BR /&gt;&lt;BR /&gt;Something like the following will be more simpler. I have tested the output of the following and its working.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg00|grep -i "lv name" | awk '{print $3}'|cut -f 4 -d "/"&amp;gt;test&lt;BR /&gt;&lt;BR /&gt;sed 's/^/r/g' test&amp;gt;rlvols&lt;BR /&gt;&lt;BR /&gt;#here comes your code for newfs&lt;BR /&gt;&amp;lt;&lt;BR /&gt;code&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;rm test &lt;BR /&gt;rm rlvols&lt;BR /&gt;&lt;BR /&gt;#End&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Feb 2005 13:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newfs/m-p/3483301#M213702</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-02-12T13:17:36Z</dc:date>
    </item>
  </channel>
</rss>

