<?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 line numbering in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489246#M800738</link>
    <description>Thanks Dan, format is like:&lt;BR /&gt;1 kfhgvhgv kfjkhfhb&lt;BR /&gt;2 if kfjn&lt;BR /&gt;3            vkjnfkjvnjnk&lt;BR /&gt;4                 lkjkfjh&lt;BR /&gt;.......&lt;BR /&gt;99  for each in&lt;BR /&gt;100  do&lt;BR /&gt;101       jgkjghk jghjjg ljfdhk;&lt;BR /&gt;102  done&lt;BR /&gt;.......&lt;BR /&gt;999 if adflkjh&lt;BR /&gt;1000    afjhkjfh&lt;BR /&gt;1001    kfjvhkdlfh&lt;BR /&gt;&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;I have tried cut from 2nd field on but loses formatting.&lt;BR /&gt;Any suggestions greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
    <pubDate>Fri, 02 Feb 2001 10:03:54 GMT</pubDate>
    <dc:creator>Ian McClement</dc:creator>
    <dc:date>2001-02-02T10:03:54Z</dc:date>
    <item>
      <title>line numbering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489246#M800738</link>
      <description>Thanks Dan, format is like:&lt;BR /&gt;1 kfhgvhgv kfjkhfhb&lt;BR /&gt;2 if kfjn&lt;BR /&gt;3            vkjnfkjvnjnk&lt;BR /&gt;4                 lkjkfjh&lt;BR /&gt;.......&lt;BR /&gt;99  for each in&lt;BR /&gt;100  do&lt;BR /&gt;101       jgkjghk jghjjg ljfdhk;&lt;BR /&gt;102  done&lt;BR /&gt;.......&lt;BR /&gt;999 if adflkjh&lt;BR /&gt;1000    afjhkjfh&lt;BR /&gt;1001    kfjvhkdlfh&lt;BR /&gt;&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;I have tried cut from 2nd field on but loses formatting.&lt;BR /&gt;Any suggestions greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Fri, 02 Feb 2001 10:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489246#M800738</guid>
      <dc:creator>Ian McClement</dc:creator>
      <dc:date>2001-02-02T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: line numbering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489247#M800739</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt; cat file | sed -e 's/^[[:digit:]]\{1,\}[[:space:]]\(.*\)$/\1/'&lt;BR /&gt;&lt;BR /&gt;This even keeps indentation after the numbers.&lt;BR /&gt;&lt;BR /&gt;Bye,&lt;BR /&gt;Rik.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2001 10:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489247#M800739</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2001-02-02T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: line numbering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489248#M800740</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;What is mean 2nd field ?&lt;BR /&gt;&lt;BR /&gt;real 2nd &amp;gt;&lt;BR /&gt;.. | awk ' { print $2 } '&lt;BR /&gt;&lt;BR /&gt;or cut number &amp;gt;&lt;BR /&gt;.. | awk ' { print sustr($0,index($0," ")+1)}'&lt;BR /&gt;&lt;BR /&gt;regards, Saa</description>
      <pubDate>Fri, 02 Feb 2001 10:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489248#M800740</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-02-02T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: line numbering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489249#M800741</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;sed 's/^[[:digit:]]*//' &amp;lt; from_file &amp;gt; to_file&lt;BR /&gt;should work as you want. It simply supresses all digits at the beginning of every line.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;PS: As you're new in this forum, simply click on the &lt;REPLY&gt; button if you want to add some comments. Don't start a new thread as users would loose track.  ;-)&lt;BR /&gt;&lt;/REPLY&gt;</description>
      <pubDate>Fri, 02 Feb 2001 10:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/line-numbering/m-p/2489249#M800741</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-02-02T10:53:46Z</dc:date>
    </item>
  </channel>
</rss>

