<?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: File Truncate in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427117#M1733</link>
    <description>Or simply in vi try:-&lt;BR /&gt;:%s/STORAGE.*;/;/</description>
    <pubDate>Thu, 22 Jun 2000 22:05:41 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2000-06-22T22:05:41Z</dc:date>
    <item>
      <title>File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427113#M1729</link>
      <description>Good Day,&lt;BR /&gt;&lt;BR /&gt;I have a file that has in the midle STORAGE WHAT_EVER....; and I would like to know if you know any script that can be run to truncate the file from where says STORAGE but do not delete (;).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;A Cossa&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2000 12:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427113#M1729</guid>
      <dc:creator>augusto cossa</dc:creator>
      <dc:date>2000-06-22T12:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427114#M1730</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please describe this problem better. Are you talking about file contents or file name,  is file being held open by some process?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;TT</description>
      <pubDate>Thu, 22 Jun 2000 13:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427114#M1730</guid>
      <dc:creator>Thomas G. Tudrej</dc:creator>
      <dc:date>2000-06-22T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427115#M1731</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The text below is on vi editor. What I want is to delete on the text where found STORAGE until before any (;) &lt;BR /&gt;&lt;BR /&gt; CREATE TABLE "ENV"."TE01_MESSAGE" ("CE01_MESSAGE_DATE" DATE NOT NULL&lt;BR /&gt;  ENABLE, "CE01_FUNCTION_NAME" VARCHAR2(25) NOT NULL ENABLE,&lt;BR /&gt; "CE01_TYPE" VARCHAR2(1) NOT NULL ENABLE, "CE01_MESSAGE" VARCHAR2(200)&lt;BR /&gt; NOT NULL ENABLE, "CE01_MODULE_NAME" VARCHAR2(36),&lt;BR /&gt; "CE01_PACKAGE_ERROR_NUMBER" VARCHAR2(36), "CE01_ORACLE_USER"&lt;BR /&gt; VARCHAR2(10)) PCTFREE 5 PCTUSED 60 INITRANS 5 MAXTRANS 255 LOGGING&lt;BR /&gt;  STORAGE(INITIAL 3727360 NEXT 745472 MINEXTENTS 1 MAXEXTENTS 5&lt;BR /&gt;  PCTINCREASE 5 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)&lt;BR /&gt;  TABLESPACE "ENV_DATA2" ;&lt;BR /&gt;  CREATE TABLE "ENV"."TE07_APPLICATION" ("CE07_USER_ID" VARCHAR2(15)&lt;BR /&gt;  NOT NULL ENABLE, "CE07_APPL_NAME" VARCHAR2(25) NOT NULL ENABLE,&lt;BR /&gt;  "CE07_APPL_PROGRAM" VARCHAR2(9) NOT NULL ENABLE, "CE07_DATABASE"&lt;BR /&gt;  VARCHAR2(5) NOT NULL ENABLE, "CE07_UID" VARCHAR2(15) NOT NULL ENABLE,&lt;BR /&gt;  "CE07_DMOD" DATE NOT NULL ENABLE) PCTFREE 5 PCTUSED 60 INITRANS 5&lt;BR /&gt;  MAXTRANS 255 LOGGING STORAGE(INITIAL 32768 NEXT 8192 MINEXTENTS 1&lt;BR /&gt;  MAXEXTENTS 5 PCTINCREASE 5 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL&lt;BR /&gt;  DEFAULT) TABLESPACE "ENV_DATA2" ;</description>
      <pubDate>Thu, 22 Jun 2000 13:41:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427115#M1731</guid>
      <dc:creator>augusto cossa</dc:creator>
      <dc:date>2000-06-22T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427116#M1732</link>
      <description>Well, no money-back guarantee on this one, but try:&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/ksh&lt;BR /&gt;sed 's/STORAGE[^;]*;/;/' | sed -n '/STORAGE/{&lt;BR /&gt;s/STORAGE.*//&lt;BR /&gt;p&lt;BR /&gt;: loop&lt;BR /&gt;n&lt;BR /&gt;s/[^;]*;/;/&lt;BR /&gt;t done&lt;BR /&gt;b loop&lt;BR /&gt;: done&lt;BR /&gt;p&lt;BR /&gt;b&lt;BR /&gt;}&lt;BR /&gt;p&lt;BR /&gt;'&lt;BR /&gt;exit 0</description>
      <pubDate>Thu, 22 Jun 2000 15:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427116#M1732</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-22T15:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427117#M1733</link>
      <description>Or simply in vi try:-&lt;BR /&gt;:%s/STORAGE.*;/;/</description>
      <pubDate>Thu, 22 Jun 2000 22:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427117#M1733</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-06-22T22:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427118#M1734</link>
      <description>Thanks Paul, but could you tell me where should I put the file name into the script that you sent to me?&lt;BR /&gt;&lt;BR /&gt;A Cossa</description>
      <pubDate>Fri, 23 Jun 2000 06:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427118#M1734</guid>
      <dc:creator>augusto cossa</dc:creator>
      <dc:date>2000-06-23T06:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: File Truncate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427119#M1735</link>
      <description>John, the semicolon is not guaranteed to be on the same line as "STORAGE".&lt;BR /&gt;&lt;BR /&gt;Augusto, the script will read from standand in and write to standard out.  So call the script "fixup" or something and then do:&lt;BR /&gt;&lt;BR /&gt;fixup &amp;lt; inputfile &amp;gt; outputfile</description>
      <pubDate>Fri, 23 Jun 2000 12:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-truncate/m-p/2427119#M1735</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-23T12:11:41Z</dc:date>
    </item>
  </channel>
</rss>

