<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215155#M169328</link>
    <description>Thanks ... Awk is what i needed.. &lt;BR /&gt;</description>
    <pubDate>Mon, 15 Mar 2004 15:00:20 GMT</pubDate>
    <dc:creator>Rpger Tavener</dc:creator>
    <dc:date>2004-03-15T15:00:20Z</dc:date>
    <item>
      <title>sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215152#M169325</link>
      <description>I have a sequential file that has variable length records in it.  I would like to add spaces to the end of each record to make the total record length = 1123 by adding spaces to the end of each record. Can this be done with sed?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 10 Mar 2004 16:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215152#M169325</guid>
      <dc:creator>Rpger Tavener</dc:creator>
      <dc:date>2004-03-10T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215153#M169326</link>
      <description>i'm not to sure about using sed, but it should be quite easy with any utility that has a printf statement, awk, shell, perl, etc&lt;BR /&gt;&lt;BR /&gt;awk:&lt;BR /&gt;&lt;BR /&gt;cat file | awk '{&lt;BR /&gt;printf("%-1123s\n",$0);&lt;BR /&gt;}' &lt;BR /&gt;&lt;BR /&gt;or in the shell&lt;BR /&gt;&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;printf "%-1123s\n" $line&lt;BR /&gt;done</description>
      <pubDate>Wed, 10 Mar 2004 16:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215153#M169326</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-03-10T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215154#M169327</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I liked Curt's idea.&lt;BR /&gt;&lt;BR /&gt;awk '&lt;BR /&gt;{ if (length($0) &amp;gt; 1123) print $0 ;&lt;BR /&gt;else printf("%-1123s\n",$0) }' data2 &amp;gt; out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To make sure it doesn't truncate the records of length more than 1123.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Mar 2004 16:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215154#M169327</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-03-10T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215155#M169328</link>
      <description>Thanks ... Awk is what i needed.. &lt;BR /&gt;</description>
      <pubDate>Mon, 15 Mar 2004 15:00:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3215155#M169328</guid>
      <dc:creator>Rpger Tavener</dc:creator>
      <dc:date>2004-03-15T15:00:20Z</dc:date>
    </item>
  </channel>
</rss>

