<?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 '-exec cmd' in find command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361219#M194096</link>
    <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to specify 2 parameters with the '-exec cmd' in find. e.g, I need to copy all files for the last week to another directoy, but it looks to me the cmd with -exec only takes one parameters(like rm), so how can I do that with one line, instead of a script:&lt;BR /&gt;find . -type f -mtime -7 -exec ??? {} \;</description>
    <pubDate>Thu, 19 Aug 2004 10:38:32 GMT</pubDate>
    <dc:creator>Gary Yu</dc:creator>
    <dc:date>2004-08-19T10:38:32Z</dc:date>
    <item>
      <title>'-exec cmd' in find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361219#M194096</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to specify 2 parameters with the '-exec cmd' in find. e.g, I need to copy all files for the last week to another directoy, but it looks to me the cmd with -exec only takes one parameters(like rm), so how can I do that with one line, instead of a script:&lt;BR /&gt;find . -type f -mtime -7 -exec ??? {} \;</description>
      <pubDate>Thu, 19 Aug 2004 10:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361219#M194096</guid>
      <dc:creator>Gary Yu</dc:creator>
      <dc:date>2004-08-19T10:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: '-exec cmd' in find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361220#M194097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try &lt;BR /&gt;&lt;BR /&gt;find . -type f -mtime -7 -exec cp {} /dir \;&lt;BR /&gt;&lt;BR /&gt;br Jan</description>
      <pubDate>Thu, 19 Aug 2004 11:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361220#M194097</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2004-08-19T11:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: '-exec cmd' in find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361221#M194098</link>
      <description>&lt;BR /&gt;Collected files on using find commands are given as {} to -exec option.&lt;BR /&gt;&lt;BR /&gt; find . -type f -mtine -7 -exec cp {} /destination-dir/ \;&lt;BR /&gt;&lt;BR /&gt; You can use multiple -exec there as,&lt;BR /&gt;&lt;BR /&gt; find . -type f -mtine -7 -exec ll {} \; -exec cp {} /destination-dir/ \;</description>
      <pubDate>Thu, 19 Aug 2004 11:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361221#M194098</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-19T11:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: '-exec cmd' in find command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361222#M194099</link>
      <description>thank you guys, it works fine!</description>
      <pubDate>Thu, 19 Aug 2004 12:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-cmd-in-find-command/m-p/3361222#M194099</guid>
      <dc:creator>Gary Yu</dc:creator>
      <dc:date>2004-08-19T12:14:57Z</dc:date>
    </item>
  </channel>
</rss>

