<?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: Vi or editor command need your help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081348#M92547</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i don't know how to replace these characters but you can suppress them by the following command under vi:&lt;BR /&gt;:%s/PAGE .*//&lt;BR /&gt;&lt;BR /&gt;whith sed, you can test something similar:&lt;BR /&gt;sed 's/PAGE .*//' filename&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
    <pubDate>Mon, 26 Nov 2007 04:00:29 GMT</pubDate>
    <dc:creator>mobidyc</dc:creator>
    <dc:date>2007-11-26T04:00:29Z</dc:date>
    <item>
      <title>Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081347#M92546</link>
      <description>Hi all&lt;BR /&gt;I have a file (2570 line ) this is a part of it:&lt;BR /&gt;=======&lt;BR /&gt;44890236177031.300001                                                                        VN0010002 LD0714500064 61925  VND 20070901 51001 21054                                                                         &lt;BR /&gt;144890236177031.320001                                                                        VN0010002 LD0714500065 61925  VND 20070901 51001 21054                                                                         &lt;BR /&gt;144890236177031.340001                                                                        VN0010002 LD0714500065 61925  VND 20070901 51001 21054                                                                         &lt;BR /&gt;144890236177031.360001                                                                        VN0010002 LD0714500065 61925  VND 20070901 51001 21054  PAGE    7 09:09:51  21 NOV 2007           &lt;BR /&gt;&lt;BR /&gt;144890236177040.030001                                                                        VN0010006 LD0714600019 100000  VND 20070901 51001 21050                                                                        &lt;BR /&gt;144890236177041.000001                                                                        VN0010006 LD0714600019 100000  VND 20070901 51001 21050                                                                        &lt;BR /&gt;144890236177041.020001                                                                        VN0010011 LD0714600024 161667  VND 20070901 51001 21060                                                                        &lt;BR /&gt;144890236177041.040001                                                                        VN0010011 LD0714600024 161667  VND 20070901 51001 21060  PAGE    9 09:09:51  21 NOV 2007&lt;BR /&gt;                                           &lt;BR /&gt;144890236177056.160001                                                                        VN0010002 LD0714600070 123850  VND 20070901 51001 21054                                                                        &lt;BR /&gt;144890236177056.180001                                                                        VN0010002 LD0714600070 123850  VND 20070901 51001 21054                                                                        &lt;BR /&gt;144890236177056.200001                                                                        VN0010002 LD0714600071 74310  VND 20070901 51001 21054&lt;BR /&gt; PAGE   10 09:09:51  21 NOV 2007                                                              &lt;BR /&gt;=====&lt;BR /&gt;&lt;BR /&gt;I want to replace all character since "PAGE" to the end of line by blank or space character.&lt;BR /&gt;It is hard with me because of the number of page&lt;BR /&gt;for ex: PAGE   8, PAGE   9, PAGE   10 and so on&lt;BR /&gt;&lt;BR /&gt;How to do it ???&lt;BR /&gt;pls help&lt;BR /&gt;Thank</description>
      <pubDate>Mon, 26 Nov 2007 02:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081347#M92546</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2007-11-26T02:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081348#M92547</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i don't know how to replace these characters but you can suppress them by the following command under vi:&lt;BR /&gt;:%s/PAGE .*//&lt;BR /&gt;&lt;BR /&gt;whith sed, you can test something similar:&lt;BR /&gt;sed 's/PAGE .*//' filename&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Mon, 26 Nov 2007 04:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081348#M92547</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-11-26T04:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081349#M92548</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use sed:&lt;BR /&gt;&lt;BR /&gt;sed 's/PAGE.*//'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kasper</description>
      <pubDate>Mon, 26 Nov 2007 04:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081349#M92548</guid>
      <dc:creator>Kasper Hedensted</dc:creator>
      <dc:date>2007-11-26T04:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081350#M92549</link>
      <description>Cedrick has a simple way.&lt;BR /&gt;If you want to restrict which lines, you can replace the "%" by two marks: 'a,'b&lt;BR /&gt;Or a mark and ".": 'a,.&lt;BR /&gt;&lt;BR /&gt;If you think "PAGE" may be on other lines and "PAGE" starts at the beginning, you can anchor it: %s/^PAGE .*$//&lt;BR /&gt;You of course can just delete those lines:&lt;BR /&gt;:g/^PAGE "/d</description>
      <pubDate>Mon, 26 Nov 2007 09:54:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081350#M92549</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-26T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081351#M92550</link>
      <description>of course, you could always use "grep" instead&lt;BR /&gt;&lt;BR /&gt;grep -v ^PAGE infile &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;would remove all lines beginning w/ PAGE in first character pos</description>
      <pubDate>Mon, 26 Nov 2007 10:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081351#M92550</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-11-26T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081352#M92551</link>
      <description>Thank you all&lt;BR /&gt;I know how to fix from your reply&lt;BR /&gt;The answer is %s/^PAGE .*$//&lt;BR /&gt;points is assigned and thread is closed</description>
      <pubDate>Mon, 26 Nov 2007 11:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081352#M92551</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2007-11-26T11:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Vi or editor command need your help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081353#M92552</link>
      <description>Thank you all&lt;BR /&gt;Regards&lt;BR /&gt;Tienna</description>
      <pubDate>Mon, 26 Nov 2007 11:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vi-or-editor-command-need-your-help/m-p/5081353#M92552</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2007-11-26T11:25:33Z</dc:date>
    </item>
  </channel>
</rss>

