<?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: edit string with sed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179635#M459757</link>
    <description>I am not sure why you are hung on using sed for this job. sed is used more for editing, replacing large files or doing more complex tasks.&lt;BR /&gt;&lt;BR /&gt;If your heart is not set on using sed, why not use cut as in &lt;BR /&gt;&lt;BR /&gt;echo mystring | cut -c 5-6&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Jun 2009 14:14:12 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2009-06-05T14:14:12Z</dc:date>
    <item>
      <title>edit string with sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179633#M459755</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm trying to work out how to use sed to keep the 5th and 6th Characters from the below string - can someone explain how I can do this?&lt;BR /&gt;&lt;BR /&gt;inndot1&lt;BR /&gt;&lt;BR /&gt;I want to keep "ot"&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 05 Jun 2009 13:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179633#M459755</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-06-05T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: edit string with sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179634#M459756</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;# X="inndot1"&lt;BR /&gt;# echo ${X}|sed -e 's/....\(..\).*/\1/'&lt;BR /&gt;ot&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Jun 2009 13:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179634#M459756</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-05T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: edit string with sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179635#M459757</link>
      <description>I am not sure why you are hung on using sed for this job. sed is used more for editing, replacing large files or doing more complex tasks.&lt;BR /&gt;&lt;BR /&gt;If your heart is not set on using sed, why not use cut as in &lt;BR /&gt;&lt;BR /&gt;echo mystring | cut -c 5-6&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jun 2009 14:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179635#M459757</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-05T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: edit string with sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179636#M459758</link>
      <description>You could also use expr(1):&lt;BR /&gt;expr substr "$X" 5 2</description>
      <pubDate>Sat, 06 Jun 2009 07:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179636#M459758</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-06T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: edit string with sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179637#M459759</link>
      <description>all options are good for me - thanks all.</description>
      <pubDate>Sat, 06 Jun 2009 12:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-string-with-sed/m-p/5179637#M459759</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-06-06T12:12:49Z</dc:date>
    </item>
  </channel>
</rss>

