<?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 copy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571807#M873553</link>
    <description>to copy the first xyz bytes from a to b use&lt;BR /&gt;&lt;BR /&gt;head -c -n xyz a &amp;gt; b&lt;BR /&gt;&lt;BR /&gt;to copy the last xyz bytes from a to b use&lt;BR /&gt;&lt;BR /&gt;tail - c xyz a &amp;gt; b</description>
    <pubDate>Wed, 29 Aug 2001 07:03:20 GMT</pubDate>
    <dc:creator>Rainer von Bongartz</dc:creator>
    <dc:date>2001-08-29T07:03:20Z</dc:date>
    <item>
      <title>File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571804#M873550</link>
      <description>is there a command within unix which will allow you to copy a certain % of the file to a new file.&lt;BR /&gt;&lt;BR /&gt;EG : File a --&amp;gt; Copy 65% of a to give File b&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 06:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571804#M873550</guid>
      <dc:creator>Enda martin</dc:creator>
      <dc:date>2001-08-29T06:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571805#M873551</link>
      <description>Hi Enda,&lt;BR /&gt;&lt;BR /&gt;I assume you mean text files - which section of the file do you want to copy, e,g, the first 65% or the last 65%?&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Wed, 29 Aug 2001 06:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571805#M873551</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-08-29T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571806#M873552</link>
      <description>the % of the split is not really important - the original file (file a) is to large to manipulate as is so I just need to split it into two smaller files - so therefore say a 50-50 split&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 07:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571806#M873552</guid>
      <dc:creator>Enda martin</dc:creator>
      <dc:date>2001-08-29T07:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571807#M873553</link>
      <description>to copy the first xyz bytes from a to b use&lt;BR /&gt;&lt;BR /&gt;head -c -n xyz a &amp;gt; b&lt;BR /&gt;&lt;BR /&gt;to copy the last xyz bytes from a to b use&lt;BR /&gt;&lt;BR /&gt;tail - c xyz a &amp;gt; b</description>
      <pubDate>Wed, 29 Aug 2001 07:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571807#M873553</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-08-29T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571808#M873554</link>
      <description>so why not use the split command in this case???&lt;BR /&gt;&lt;BR /&gt;see man split&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 07:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571808#M873554</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-08-29T07:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571809#M873555</link>
      <description>Enda,&lt;BR /&gt;&lt;BR /&gt;OK - have a look at the split command - you can tell it how many ways to split, or how big each output file should be.&lt;BR /&gt;&lt;BR /&gt;The problem with tail is that it's not good at handling a large tail of a big file.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Wed, 29 Aug 2001 07:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571809#M873555</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-08-29T07:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571810#M873556</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;there is also th command csplit which allows you to use searchpatterns. So you could use for example a specific date or time in a logfile as the splitposition.&lt;BR /&gt;&lt;BR /&gt;Have a look at man csplit.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Wed, 29 Aug 2001 07:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571810#M873556</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-08-29T07:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571811#M873557</link>
      <description>try split.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj</description>
      <pubDate>Wed, 29 Aug 2001 19:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571811#M873557</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-08-29T19:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571812#M873558</link>
      <description>Use the "dd" command, here is a very "rude" example, and can probably be cut down to something smaller:&lt;BR /&gt;&lt;BR /&gt;echo `ls -l fileA`"\nx x x x .65" | tr -s "  " " " | cut -d" " -f 5 | xargs echo | sed "s/ / \* /g" | bc | cut -d"." -f1 | sed "s/$/ \/ 512 /" | bc | sed "s:^:dd if=fileA of=fileB count=:"|sh&lt;BR /&gt;&lt;BR /&gt;replace the .65 with whatever percent you want.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2001 11:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2571812#M873558</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-08-30T11:37:40Z</dc:date>
    </item>
  </channel>
</rss>

