<?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: sed 's/\\//g' &amp;lt; /tmp/wtg1 gives Memory fault(coredump) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724290#M945593</link>
    <description>Hi Wayne,&lt;BR /&gt;&lt;BR /&gt;Would it be possible for you to attach a couple of lines of the file as an example? Is it possible that the \ is showing as part of a newline character, \n or a tab \t  ?&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Wed, 15 May 2002 09:41:57 GMT</pubDate>
    <dc:creator>John Strang</dc:creator>
    <dc:date>2002-05-15T09:41:57Z</dc:date>
    <item>
      <title>sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724288#M945591</link>
      <description>Trying to sed a file with long lines, over 2000 chars a line. Get a core dump trying to get rid of the "\" char. &lt;BR /&gt;&lt;BR /&gt;Any other char is OK - sed 's/\|//g' or sed 's/4//g' or chars enclosing the "\" chars - sed 's/4*05775//g'.&lt;BR /&gt;&lt;BR /&gt;Also get a core dump on occasion searching file for "\" char in more. Try to vi the file but get the line too long message. od -c doesn't show any dodgy chars.&lt;BR /&gt;&lt;BR /&gt;Created a dummy file with "\" chars and sed can find the "\" file and remove or replace them.&lt;BR /&gt;&lt;BR /&gt;Anyone with any ideas</description>
      <pubDate>Wed, 15 May 2002 09:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724288#M945591</guid>
      <dc:creator>Wayne Green</dc:creator>
      <dc:date>2002-05-15T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724289#M945592</link>
      <description>It more of a limit thing. I thing if you got more than 8k in one line it'll core dump on you. Try GNU sed .. it's more robust ..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/sed-3.02/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/sed-3.02/&lt;/A&gt;</description>
      <pubDate>Wed, 15 May 2002 09:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724289#M945592</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-15T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724290#M945593</link>
      <description>Hi Wayne,&lt;BR /&gt;&lt;BR /&gt;Would it be possible for you to attach a couple of lines of the file as an example? Is it possible that the \ is showing as part of a newline character, \n or a tab \t  ?&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 15 May 2002 09:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724290#M945593</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-05-15T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724291#M945594</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;why don't you simply use "tr" for that:&lt;BR /&gt;&lt;BR /&gt;tr -d "\\" &amp;lt; input.file &amp;gt; output.file&lt;BR /&gt;&lt;BR /&gt;this would delete all backslashes from the input.file - without any problem about line-lenght limits...&lt;BR /&gt;&lt;BR /&gt;Just my $0.02,&lt;BR /&gt;Wodisch</description>
      <pubDate>Wed, 15 May 2002 09:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724291#M945594</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2002-05-15T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724292#M945595</link>
      <description>I've localised the problem to a few different lines, and put this into a separate file to work on. Its wc output is 1 131 2666 /tmp/wtg1.&lt;BR /&gt;The previous 2 lines are OK wc output is 2 247 5306 /tmp/wtg2 so it doesn't seem to be a size limit.&lt;BR /&gt;&lt;BR /&gt;od -c output of the lines with \ in below, dunno if it'll be readable though&lt;BR /&gt;&lt;BR /&gt;0004640   |   1   |   p   r   z   e   l   -   1   1   1   0   0   0   4&lt;BR /&gt;0004660   5   2   8           5   4   \   0   1   \   0   5   7   7   5&lt;BR /&gt;0004700                           |                                    &lt;BR /&gt;0004720               3   3   8   1   5   |       0   |                &lt;BR /&gt;0004740       0   |           0   |       0   |   0   |                &lt;BR /&gt;0004760                           |       1   |           5   1   2   6&lt;BR /&gt;0005000   |           1   |       0   |   0   |   5   2   4   0   3   0&lt;BR /&gt;0005020   3   3   7   5                       |   R   0   1   1   5   6&lt;BR /&gt;0005040   6   0   1   0                       |   1   0   1   0   1   0&lt;BR /&gt;0005060   2   3   |   2   6   -   1   3   9   -   |       |   N   |   0&lt;BR /&gt;0005100   0   2   7   3   9   6   2   0   4   5   5   |   1   1   4   0&lt;BR /&gt;0005120   1   0   1   0   0   0   2   7   3   9   6   2   0   4   5   5&lt;BR /&gt;0005140   2   5   2   1   0   0   |   6   8  \n&lt;BR /&gt;0005152&lt;BR /&gt;&lt;BR /&gt;wodisch tried your suggestion, no core dump but it didn't find the "\" char. No change to output.&lt;BR /&gt;&lt;BR /&gt;Thanks for your interest. &lt;BR /&gt;</description>
      <pubDate>Wed, 15 May 2002 10:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724292#M945595</guid>
      <dc:creator>Wayne Green</dc:creator>
      <dc:date>2002-05-15T10:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724293#M945596</link>
      <description>Unless you want to translate \010 to the corresponding value, and just realy just want to drop the \, Wodish' tr should work, as would&lt;BR /&gt;&lt;BR /&gt;# perl -pe 'tr/\\//d' infile &amp;gt;outfile&lt;BR /&gt;&lt;BR /&gt;if you want to translate octals, you could use&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/\\([0-7]+)/oct$1/ge' infile &amp;gt;outfile</description>
      <pubDate>Wed, 15 May 2002 10:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724293#M945596</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-05-15T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724294#M945597</link>
      <description>Ran this by HP aswell and they suggested loading a patch to sed&lt;BR /&gt;&lt;BR /&gt;Symptoms:&lt;BR /&gt; PHCO_22760:&lt;BR /&gt; 1. sed(1) dumps core when the length of input string is&lt;BR /&gt;    larger than 2K bytes.&lt;BR /&gt;&lt;BR /&gt;once loaded it fixed the problem though dont quite see the logic here when it worked ok for a larger line. Ran other tests with files I created over 2666 chars long on other system built from same ignite tape and sed doesn't produce a core dump. Beats me so I'll just load the path on 'em all.</description>
      <pubDate>Wed, 15 May 2002 11:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724294#M945597</guid>
      <dc:creator>Wayne Green</dc:creator>
      <dc:date>2002-05-15T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: sed 's/\\//g' &lt; /tmp/wtg1 gives Memory fault(coredump)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724295#M945598</link>
      <description>Ran this by HP aswell and they suggested loading a patch to sed&lt;BR /&gt;&lt;BR /&gt;Symptoms:&lt;BR /&gt; PHCO_22760:&lt;BR /&gt; 1. sed(1) dumps core when the length of input string is&lt;BR /&gt;    larger than 2K bytes.&lt;BR /&gt;&lt;BR /&gt;once loaded it fixed the problem though dont quite see the logic here when it worked ok for a larger line. Ran other tests with files I created over 2666 chars long on other system built from same ignite tape and sed doesn't produce a core dump. Beats me so I'll just load the path on 'em all.&lt;BR /&gt;&lt;BR /&gt;The perl command worked OK aswell. Thanks</description>
      <pubDate>Wed, 15 May 2002 11:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-s-g-lt-tmp-wtg1-gives-memory-fault-coredump/m-p/2724295#M945598</guid>
      <dc:creator>Wayne Green</dc:creator>
      <dc:date>2002-05-15T11:15:35Z</dc:date>
    </item>
  </channel>
</rss>

