<?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: Copy large number of files using cp command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428201#M2078</link>
    <description>and another way:&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;cd sourcedir&lt;BR /&gt;find . -name '*' -exec cp {} /targetdir ;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;&lt;BR /&gt;also good for removing large numbers of files from a directory:&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;find . -name 'xxx*' -exec rm {} ;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 02 Jul 2000 09:28:48 GMT</pubDate>
    <dc:creator>Dhanesh Patel</dc:creator>
    <dc:date>2000-07-02T09:28:48Z</dc:date>
    <item>
      <title>Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428193#M2070</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I want to copy large number of files within one directory to another directory. When I am going to copy I am getting error message saying that list is too large. Is there a limitaion within cp command. How can I get arround from this problem.</description>
      <pubDate>Thu, 29 Jun 2000 05:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428193#M2070</guid>
      <dc:creator>Roy Fernando</dc:creator>
      <dc:date>2000-06-29T05:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428194#M2071</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the restriction is not the cp command but the shell itself.&lt;BR /&gt;Use the cpio instead:&lt;BR /&gt;&lt;BR /&gt;cd &lt;SRC_DIR&gt;&lt;BR /&gt;ls | cpio -pmdv &lt;DEST_DIR&gt;&lt;BR /&gt;&lt;BR /&gt;This will copy all files in &lt;SRC_DIR&gt; to &lt;DEST_DIR&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to copy a full tree (with subdirs) you can use:&lt;BR /&gt;&lt;BR /&gt;cd &lt;SRC_DIR&gt;&lt;BR /&gt;find . -depth | cpio -pmdv &lt;NEW_DIR&gt;&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;/NEW_DIR&gt;&lt;/SRC_DIR&gt;&lt;/DEST_DIR&gt;&lt;/SRC_DIR&gt;&lt;/DEST_DIR&gt;&lt;/SRC_DIR&gt;</description>
      <pubDate>Thu, 29 Jun 2000 05:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428194#M2071</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-06-29T05:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428195#M2072</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;To copy all files and subdirectory to target directory by using cp with -r option.&lt;BR /&gt;&lt;BR /&gt;syntax as follows...&lt;BR /&gt;&lt;BR /&gt;#cp -r /data /data1&lt;BR /&gt;&lt;BR /&gt;(Here all files and subdirectory will be copied in to /data1 directory)&lt;BR /&gt;&lt;BR /&gt;You can Help page for "cp" command use #man cp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;by&lt;BR /&gt;suren&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jun 2000 05:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428195#M2072</guid>
      <dc:creator>surendhar prakash.J</dc:creator>
      <dc:date>2000-06-29T05:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428196#M2073</link>
      <description>If you are running with low resources try this&lt;BR /&gt;cd dir &lt;BR /&gt;dir=the dir you want to copy all files from&lt;BR /&gt;&lt;BR /&gt;ls &amp;gt; /tmp/somefile&lt;BR /&gt;for X in `cat /tmp/somefile`&lt;BR /&gt;do&lt;BR /&gt;cp $X newdir&lt;BR /&gt;echo copying $X&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;newdir being the new directory you want to copy to&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Thu, 29 Jun 2000 13:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428196#M2073</guid>
      <dc:creator>James Odak</dc:creator>
      <dc:date>2000-06-29T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428197#M2074</link>
      <description>These solutions all work for copying files.  For a general solution to use when you will generate a command list that exceeds the shell's buffer, look at piping to xargs.</description>
      <pubDate>Thu, 29 Jun 2000 13:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428197#M2074</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-29T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428198#M2075</link>
      <description>If there are subdirectories within the directory;&lt;BR /&gt;&lt;BR /&gt;cd to directory&lt;BR /&gt;find . -depth | cpio -pmuldv /newpath&lt;BR /&gt;&lt;BR /&gt;This will keep the permissions the same and create the needed subdirectories with the files.</description>
      <pubDate>Thu, 29 Jun 2000 13:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428198#M2075</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-06-29T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428199#M2076</link>
      <description>Just to add another trick to the list&lt;BR /&gt;&lt;BR /&gt;cd to the source directory and then:&lt;BR /&gt;&lt;BR /&gt;# tar cf - . | ( cd dest-dir ; tar xf - )&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Harm</description>
      <pubDate>Fri, 30 Jun 2000 11:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428199#M2076</guid>
      <dc:creator>Harm Meijer</dc:creator>
      <dc:date>2000-06-30T11:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428200#M2077</link>
      <description>The limit on the number of arguments can be&lt;BR /&gt;increased on series 700, HP-UX 10.20.  The&lt;BR /&gt;default limit was 20478 bytes total for&lt;BR /&gt;environment variables and command&lt;BR /&gt;arguments.  If you apply patch PHKL_16750 and set the tunable kernel parameter&lt;BR /&gt;large_ncargs_enabled to 1, then the limit&lt;BR /&gt;will increase to 2048000 bytes.&lt;BR /&gt;That larger limit is the default for 11.0.</description>
      <pubDate>Fri, 30 Jun 2000 15:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428200#M2077</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2000-06-30T15:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428201#M2078</link>
      <description>and another way:&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;cd sourcedir&lt;BR /&gt;find . -name '*' -exec cp {} /targetdir ;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;&lt;BR /&gt;also good for removing large numbers of files from a directory:&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;find . -name 'xxx*' -exec rm {} ;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Jul 2000 09:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428201#M2078</guid>
      <dc:creator>Dhanesh Patel</dc:creator>
      <dc:date>2000-07-02T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy large number of files using cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428202#M2079</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Did you get this working, or is it a ulimit problem?</description>
      <pubDate>Mon, 03 Jul 2000 19:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-large-number-of-files-using-cp-command/m-p/2428202#M2079</guid>
      <dc:creator>RDCanada</dc:creator>
      <dc:date>2000-07-03T19:36:56Z</dc:date>
    </item>
  </channel>
</rss>

