<?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: cp command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874113#M278928</link>
    <description>If you have directory with names starting from say .A to .Z or .1 etc.. then change the line to something like this&lt;BR /&gt;ls -ld .[aA1-zZ0]*|grep ^d|awk '{print $9}'&lt;BR /&gt;Just try running this command from / and you'll see all the directories starting with .</description>
    <pubDate>Wed, 04 Oct 2006 00:40:42 GMT</pubDate>
    <dc:creator>Rajeev  Shukla</dc:creator>
    <dc:date>2006-10-04T00:40:42Z</dc:date>
    <item>
      <title>cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874108#M278923</link>
      <description>Hi!&lt;BR /&gt;I have a problem that seems to be very easy to solve, at first sight.&lt;BR /&gt;&lt;BR /&gt;How to cp all directories beginning with . from / to some other directory?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Igor</description>
      <pubDate>Wed, 04 Oct 2006 00:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874108#M278923</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-10-04T00:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874109#M278924</link>
      <description>Hello Igor.&lt;BR /&gt;YOu can use the folliwng command to do what you want&lt;BR /&gt;&lt;BR /&gt;cp -p -R .from* /tmp&lt;BR /&gt;where /tmp is the destination address&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Oct 2006 00:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874109#M278924</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2006-10-04T00:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874110#M278925</link>
      <description>sorry :-)&lt;BR /&gt;&lt;BR /&gt;I mean all directories beginnig with .&lt;BR /&gt;from - means from root directory /&lt;BR /&gt;from is not directory name</description>
      <pubDate>Wed, 04 Oct 2006 00:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874110#M278925</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-10-04T00:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874111#M278926</link>
      <description>&lt;!--!*#--&gt;Excerpt from the cpio man page...&lt;BR /&gt;&lt;BR /&gt;# man cpio&lt;BR /&gt;...&lt;BR /&gt;Duplicate a directory hierarchy:&lt;BR /&gt;       cd olddir&lt;BR /&gt;       find . -depth -print | cpio -pd newdir&lt;BR /&gt;...</description>
      <pubDate>Wed, 04 Oct 2006 00:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874111#M278926</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-10-04T00:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874112#M278927</link>
      <description>i would do something like this to be on the safer side&lt;BR /&gt;cd /&lt;BR /&gt;for i in `ls -ld .[a-z]*|grep ^d|awk '{print $9}'`&lt;BR /&gt;do&lt;BR /&gt;cp -rp $i /destinationDIR &lt;BR /&gt;done</description>
      <pubDate>Wed, 04 Oct 2006 00:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874112#M278927</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-10-04T00:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874113#M278928</link>
      <description>If you have directory with names starting from say .A to .Z or .1 etc.. then change the line to something like this&lt;BR /&gt;ls -ld .[aA1-zZ0]*|grep ^d|awk '{print $9}'&lt;BR /&gt;Just try running this command from / and you'll see all the directories starting with .</description>
      <pubDate>Wed, 04 Oct 2006 00:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874113#M278928</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2006-10-04T00:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874114#M278929</link>
      <description>The directory "." means the present working dorectory and ".." means the parent directories so these can't be moved...</description>
      <pubDate>Wed, 04 Oct 2006 00:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874114#M278929</guid>
      <dc:creator>Mridul Shrivastava</dc:creator>
      <dc:date>2006-10-04T00:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874115#M278930</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the most pragmatic way is to use &lt;BR /&gt;&lt;BR /&gt;cp -rp .??* &lt;TARGET&gt;&lt;BR /&gt;&lt;BR /&gt;but with the limitation that it will not copy directories with one character names and also will copy all files beginning with a dot.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan&lt;/TARGET&gt;</description>
      <pubDate>Thu, 05 Oct 2006 01:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874115#M278930</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2006-10-05T01:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: cp command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874116#M278931</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Use the command from /&lt;BR /&gt;# find . -depth|cpio -pvxdm &lt;NEWLOCATION&gt;&lt;BR /&gt;&lt;BR /&gt;Try and revert..&lt;BR /&gt;&lt;BR /&gt;Hareesh&lt;/NEWLOCATION&gt;</description>
      <pubDate>Thu, 05 Oct 2006 02:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-command/m-p/3874116#M278931</guid>
      <dc:creator>Hareesh Kumar</dc:creator>
      <dc:date>2006-10-05T02:17:46Z</dc:date>
    </item>
  </channel>
</rss>

