<?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: removing name in pathname in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898219#M701504</link>
    <description>Hi Isralyn,&lt;BR /&gt;&lt;BR /&gt; I dun quite understand.. what do I have to do..if my log file is named "list".. then what should i do?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Henry&lt;BR /&gt;</description>
    <pubDate>Mon, 25 Apr 2005 23:19:21 GMT</pubDate>
    <dc:creator>Henry Chua</dc:creator>
    <dc:date>2005-04-25T23:19:21Z</dc:date>
    <item>
      <title>removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898217#M701502</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;  If i have this"&lt;BR /&gt;D/DIR1/DIR2/DIR3&lt;BR /&gt;D/DIR4/DIR5/DIR6&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;in a log file.. how can I removed the D to make it&lt;BR /&gt;"&lt;BR /&gt;/DIR1/DIR2/DIR3&lt;BR /&gt;/DIR4/DIR5/DIR6"&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Henry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 22:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898217#M701502</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-04-25T22:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898218#M701503</link>
      <description>Hi Henry,&lt;BR /&gt;&lt;BR /&gt;Use vi, then execute:&lt;BR /&gt;&lt;BR /&gt;:%s/D\//\//g&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Isralyn</description>
      <pubDate>Mon, 25 Apr 2005 23:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898218#M701503</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-04-25T23:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898219#M701504</link>
      <description>Hi Isralyn,&lt;BR /&gt;&lt;BR /&gt; I dun quite understand.. what do I have to do..if my log file is named "list".. then what should i do?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Henry&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2005 23:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898219#M701504</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-04-25T23:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898220#M701505</link>
      <description>You can use the sed command. &lt;BR /&gt;&lt;BR /&gt;sed 's/D\//\//g' &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Please note the backslash '\' is used to escape the forward slash '/'.&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 25 Apr 2005 23:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898220#M701505</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-04-25T23:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898221#M701506</link>
      <description>You can do as,&lt;BR /&gt;&lt;BR /&gt;sed -i 's/^D//' list&lt;BR /&gt;&lt;BR /&gt;It will remove D in the begin and update it in to list file also.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Tue, 26 Apr 2005 00:06:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898221#M701506</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-04-26T00:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898222#M701507</link>
      <description>Hi Henry,&lt;BR /&gt;&lt;BR /&gt;My apologies but upon looking back into the displayed output of the one I posted, it looks confusing. I'll attach it as a word doc. What I suggested is using global string replacement in vi.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Isralyn</description>
      <pubDate>Tue, 26 Apr 2005 00:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898222#M701507</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-04-26T00:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898223#M701508</link>
      <description>D/DIR1/DIR2/DIR3&lt;BR /&gt;D/DIR4/DIR5/DIR6&lt;BR /&gt;&lt;BR /&gt;Correct me if I understand your question &lt;BR /&gt;incorrectly. My understanding is, you want to &lt;BR /&gt;remove all the chars from the beginning of the line&lt;BR /&gt;till the first '/' char. If that's what you want, the &lt;BR /&gt;following script should do it:&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;while read -r line&lt;BR /&gt;do&lt;BR /&gt;echo ${line#*/}&lt;BR /&gt;done &amp;lt; /your/logfile&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2005 13:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898223#M701508</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-04-26T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: removing name in pathname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898224#M701509</link>
      <description>Thanks guys found the answer I wanted..</description>
      <pubDate>Tue, 26 Apr 2005 19:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-name-in-pathname/m-p/4898224#M701509</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-04-26T19:35:44Z</dc:date>
    </item>
  </channel>
</rss>

