<?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: Remove /dev/ from the large file using sed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263642#M660163</link>
    <description>thx</description>
    <pubDate>Sun, 21 Nov 2010 01:05:25 GMT</pubDate>
    <dc:creator>Mike_305</dc:creator>
    <dc:date>2010-11-21T01:05:25Z</dc:date>
    <item>
      <title>Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263637#M660158</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to remove /dev/ from the file using sed and no luck getting that done.&lt;BR /&gt;&lt;BR /&gt;If someone can hel me that will be very much appreciated.&lt;BR /&gt;&lt;BR /&gt;at test.lst | sed -e 's/\/dev//' &amp;gt;&amp;gt;&amp;gt; Strill leaves the leading "/" and not able to remove using sed.&lt;BR /&gt;&lt;BR /&gt;trying to remove /dev/ from the file&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;M&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Nov 2010 19:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263637#M660158</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2010-11-20T19:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263638#M660159</link>
      <description>Here is what I started with:&lt;BR /&gt;&lt;BR /&gt;$ cat test.lst&lt;BR /&gt;/dev/some&lt;BR /&gt;/dev/thing&lt;BR /&gt;/dev/some&lt;BR /&gt;/dev/thing&lt;BR /&gt;/dev/else&lt;BR /&gt;&lt;BR /&gt;Here is what I did:&lt;BR /&gt;&lt;BR /&gt;$ sed -e 's/\/dev\///g' test.lst&lt;BR /&gt;some&lt;BR /&gt;thing&lt;BR /&gt;some&lt;BR /&gt;thing&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;If you want to remove '/dev/' from the file you have to include the leading and trailing '/' characters and escape them both with the '\'.&lt;BR /&gt;&lt;BR /&gt;Also note that you don't have to cat the file and pipe it to sed.  That wastes a process.</description>
      <pubDate>Sat, 20 Nov 2010 19:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263638#M660159</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-20T19:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263639#M660160</link>
      <description>&lt;!--!*#--&gt;[...] and escape them both [...]&lt;BR /&gt;&lt;BR /&gt;"/" may be less special than you think.&lt;BR /&gt;&lt;BR /&gt;$ echo '/dev/thing' | sed -e 's|/dev/||'&lt;BR /&gt;thing</description>
      <pubDate>Sat, 20 Nov 2010 19:44:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263639#M660160</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-11-20T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263640#M660161</link>
      <description>&amp;gt;&amp;gt;"/" may be less special than you think.&lt;BR /&gt;&lt;BR /&gt;When you don't use the '/' as the delimiter, very true.  In Steven's example above note that he used the '|' (pipe) symbol rather than forward slashes in the sed command.  The eliminated the need for escaping the slashes in '/dev/'.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Nov 2010 19:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263640#M660161</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-20T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263641#M660162</link>
      <description>Thanks, appreciate the quick response and knowledge that you share.&lt;BR /&gt;&lt;BR /&gt;U guys are DE Man !!!!! :)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;MJ</description>
      <pubDate>Sat, 20 Nov 2010 20:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263641#M660162</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2010-11-20T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove /dev/ from the large file using sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263642#M660163</link>
      <description>thx</description>
      <pubDate>Sun, 21 Nov 2010 01:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-dev-from-the-large-file-using-sed/m-p/5263642#M660163</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2010-11-21T01:05:25Z</dc:date>
    </item>
  </channel>
</rss>

