<?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: need info in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876207#M279322</link>
    <description>just change directory before you start the find command;&lt;BR /&gt;&lt;BR /&gt;# cd /user/reena/firstfolder/backup/temp&lt;BR /&gt;# find . -xdev -name "*.dat" | cpio -pcmudv /user/reena/backup/temp&lt;BR /&gt;&lt;BR /&gt;or a very simple script&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;ORGDIR=/user/reena/firstfolder/backup/temp&lt;BR /&gt;DESTDIR=/user/reena/backup/temp&lt;BR /&gt;&lt;BR /&gt;cd $ORGDIR&lt;BR /&gt;find . -xdev -name "*.dat" | cpio -pcmudv $DESTDIR&lt;BR /&gt;&lt;BR /&gt;Robert-Jan&lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Sun, 08 Oct 2006 05:37:14 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2006-10-08T05:37:14Z</dc:date>
    <item>
      <title>need info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876203#M279318</link>
      <description>I am facing some problem while copying from source to destination in shell script.&lt;BR /&gt;How to recursively search for the files into subdirectories.&lt;BR /&gt;Suppose i can copy files from-to location by command&lt;BR /&gt;cp "/home/temp/*.dat" "/home/temp10"&lt;BR /&gt;&lt;BR /&gt;And in /home/temp , i have some subdirectories say "/home/temp/test2" and "/home/temp/test3" where i have some more dat files.&lt;BR /&gt;&lt;BR /&gt;So how will i search all the .dat file into subdirectories?&lt;BR /&gt;While copying in the destination path i.e. "/home/temp10" i need that folder also should created and files should copy as below:&lt;BR /&gt;"/home/temp10/test2/.dat"&lt;BR /&gt;"/home/temp10/test3/.dat"&lt;BR /&gt;"/home/temp10/.dat"&lt;BR /&gt;&lt;BR /&gt;How can i make directories while copying?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Reena</description>
      <pubDate>Sat, 07 Oct 2006 04:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876203#M279318</guid>
      <dc:creator>Reena Dodake</dc:creator>
      <dc:date>2006-10-07T04:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: need info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876204#M279319</link>
      <description>Hi Reena,&lt;BR /&gt;&lt;BR /&gt;How about.&lt;BR /&gt;&lt;BR /&gt;# find /home/temp -name "*.dat" -xdev | cpio -pcmudv /home/temp10&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Sat, 07 Oct 2006 05:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876204#M279319</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-10-07T05:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: need info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876205#M279320</link>
      <description>&lt;BR /&gt;Thanks Robert-Jan ...&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Oct 2006 01:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876205#M279320</guid>
      <dc:creator>Reena Dodake</dc:creator>
      <dc:date>2006-10-08T01:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: need info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876206#M279321</link>
      <description>cpio command works fine....&lt;BR /&gt;But it copies files from the root path.&lt;BR /&gt;&lt;BR /&gt;means suppose i have files in source location&lt;BR /&gt;/user/reena/firstfolder/backup/temp/a.dat&lt;BR /&gt;/user/reena/firstfolder/backup/temp/b.dat&lt;BR /&gt;/user/reena/firstfolder/backup/temp/aaa/bbb/aa.dat&lt;BR /&gt;/user/reena/firstfolder/backup/temp/aaa/bbb/bb.dat&lt;BR /&gt;/user/reena/firstfolder/backup/temp/ccc/ddd/aa.dat&lt;BR /&gt;/user/reena/firstfolder/backup/temp/ccc/ddd/dd.dat&lt;BR /&gt;&lt;BR /&gt;and at destination location &lt;BR /&gt;/user/reena/backup/temp/&lt;BR /&gt;So, cp command that i am going to execute is&lt;BR /&gt;&lt;BR /&gt;cp "/user/reena/firstfolder/secondfolder/*.dat" "/user/reena/backup/temp"&lt;BR /&gt;&lt;BR /&gt;So i need in destnation location files to copied i.e,&lt;BR /&gt;/user/reena/backup/temp/a.dat&lt;BR /&gt;/user/reena/backup/temp/b.dat&lt;BR /&gt;/user/reena/backup/temp/aaa/bbb/aa.dat&lt;BR /&gt;/user/reena/backup/temp/aaa/bbb/bb.dat&lt;BR /&gt;&lt;BR /&gt;How can copy files from source path to destination path with creating same directory structure as source location ?&lt;BR /&gt;&lt;BR /&gt;Or How can i write a script to achieve this?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Reena</description>
      <pubDate>Sun, 08 Oct 2006 05:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876206#M279321</guid>
      <dc:creator>Reena Dodake</dc:creator>
      <dc:date>2006-10-08T05:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: need info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876207#M279322</link>
      <description>just change directory before you start the find command;&lt;BR /&gt;&lt;BR /&gt;# cd /user/reena/firstfolder/backup/temp&lt;BR /&gt;# find . -xdev -name "*.dat" | cpio -pcmudv /user/reena/backup/temp&lt;BR /&gt;&lt;BR /&gt;or a very simple script&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;ORGDIR=/user/reena/firstfolder/backup/temp&lt;BR /&gt;DESTDIR=/user/reena/backup/temp&lt;BR /&gt;&lt;BR /&gt;cd $ORGDIR&lt;BR /&gt;find . -xdev -name "*.dat" | cpio -pcmudv $DESTDIR&lt;BR /&gt;&lt;BR /&gt;Robert-Jan&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sun, 08 Oct 2006 05:37:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-info/m-p/3876207#M279322</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-10-08T05:37:14Z</dc:date>
    </item>
  </channel>
</rss>

