<?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: find command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341809#M874609</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;#find / -type f -name "*string*" -exec cp -p {} &lt;TARGET_PATH_DIR&gt; \;&lt;BR /&gt;&lt;BR /&gt;"-type f" optimizes the search, indicating that just looks for files (it omits directories, links, etc).&lt;BR /&gt;&lt;BR /&gt;If you are ussing wilcards to find a file group you will contain it among " "&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;/TARGET_PATH_DIR&gt;</description>
    <pubDate>Tue, 27 Jul 2004 02:52:50 GMT</pubDate>
    <dc:creator>Jose Mosquera</dc:creator>
    <dc:date>2004-07-27T02:52:50Z</dc:date>
    <item>
      <title>find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341805#M874605</link>
      <description>Is it possible to find some files and copy them to a different folder in a single command line (find) ?</description>
      <pubDate>Tue, 27 Jul 2004 02:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341805#M874605</guid>
      <dc:creator>Ravi_65</dc:creator>
      <dc:date>2004-07-27T02:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341806#M874606</link>
      <description>-exec does this , you can execute more commands by chaining -exec after find command. Important - dont forget \; at the end. &lt;BR /&gt;&lt;BR /&gt;find / -name "file" -exec cp -p {} /dir/ \;&lt;BR /&gt;&lt;BR /&gt;find / -name file -exec cp {} /dir \; -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jul 2004 02:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341806#M874606</guid>
      <dc:creator>Petr Simik_1</dc:creator>
      <dc:date>2004-07-27T02:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341807#M874607</link>
      <description>Thanx Petr&lt;BR /&gt;&lt;BR /&gt;-Ravi</description>
      <pubDate>Tue, 27 Jul 2004 02:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341807#M874607</guid>
      <dc:creator>Ravi_65</dc:creator>
      <dc:date>2004-07-27T02:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341808#M874608</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can do by using find and cpio in one command.&lt;BR /&gt;&lt;BR /&gt;to find a list of files after a certain period, you can make use of the -newer parameter. other wise you could use mtime and atime.&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;BR /&gt;&lt;BR /&gt;find /path_name -name "*file_string*" -mtime +1 -print | cpio -p /new_loacation_path.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IA.</description>
      <pubDate>Tue, 27 Jul 2004 02:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341808#M874608</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2004-07-27T02:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341809#M874609</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;#find / -type f -name "*string*" -exec cp -p {} &lt;TARGET_PATH_DIR&gt; \;&lt;BR /&gt;&lt;BR /&gt;"-type f" optimizes the search, indicating that just looks for files (it omits directories, links, etc).&lt;BR /&gt;&lt;BR /&gt;If you are ussing wilcards to find a file group you will contain it among " "&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;/TARGET_PATH_DIR&gt;</description>
      <pubDate>Tue, 27 Jul 2004 02:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341809#M874609</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2004-07-27T02:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341810#M874610</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this can be done with teh -exec option of find. Something like&lt;BR /&gt;&lt;BR /&gt;find . -type f -exec cp -p {} /yourdir \;&lt;BR /&gt;&lt;BR /&gt;where {} ist the result of the find given to the copy command. And \; ends the copy command.&lt;BR /&gt;&lt;BR /&gt;But in this case for every single file this will start a seperate cp process, copy the file and end the cp process.&lt;BR /&gt;&lt;BR /&gt;This can be pretty slow if you have e.g. several thousand files to copy. If you have only a limited number of files to copy this is an easy way.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Tue, 27 Jul 2004 02:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341810#M874610</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-07-27T02:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341811#M874611</link>
      <description>Uuups seems that it took me far to long to key in my reply.&lt;BR /&gt;&lt;BR /&gt;I would be much faster with my replies if there where no users (asking oh so important questions) around.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Tue, 27 Jul 2004 03:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-command/m-p/3341811#M874611</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-07-27T03:01:21Z</dc:date>
    </item>
  </channel>
</rss>

