<?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 - insert spaces on line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354934#M345249</link>
    <description>Instead of sed, try awk:&lt;BR /&gt;&lt;BR /&gt;awk '{printf("%s %s %s\n",substr($0,1,4),substr($0,5,2),substr($0,7,2))}' &amp;lt; orig_file &amp;gt; new_file</description>
    <pubDate>Mon, 09 Feb 2009 16:38:25 GMT</pubDate>
    <dc:creator>Michael Mike Reaser</dc:creator>
    <dc:date>2009-02-09T16:38:25Z</dc:date>
    <item>
      <title>sed - insert spaces on line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354933#M345248</link>
      <description>I have a file that contains a date on each line.  I would like to up date the formate by doing the following:&lt;BR /&gt;&lt;BR /&gt;orig_file:&lt;BR /&gt;20090208&lt;BR /&gt;20090209&lt;BR /&gt;&lt;BR /&gt;new_file&lt;BR /&gt;2009 02 08&lt;BR /&gt;2009 02 09&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;Thanks&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 16:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354933#M345248</guid>
      <dc:creator>Simpson</dc:creator>
      <dc:date>2009-02-09T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: sed - insert spaces on line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354934#M345249</link>
      <description>Instead of sed, try awk:&lt;BR /&gt;&lt;BR /&gt;awk '{printf("%s %s %s\n",substr($0,1,4),substr($0,5,2),substr($0,7,2))}' &amp;lt; orig_file &amp;gt; new_file</description>
      <pubDate>Mon, 09 Feb 2009 16:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354934#M345249</guid>
      <dc:creator>Michael Mike Reaser</dc:creator>
      <dc:date>2009-02-09T16:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: sed - insert spaces on line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354935#M345250</link>
      <description>$ sed -e 's/\(....\)\(..\)\(..\)/\1 \2 \3/' old.txt &amp;gt; new.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 16:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed-insert-spaces-on-line/m-p/4354935#M345250</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-09T16:40:48Z</dc:date>
    </item>
  </channel>
</rss>

