<?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: xargs cp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040064#M432702</link>
    <description>Hi Andy:&lt;BR /&gt;&lt;BR /&gt;Why use 'ls'?&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;# find /apps/logs -type f -name stdout.log | xargs -i cp {} /home/z15logs&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 13 Apr 2007 10:43:08 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-04-13T10:43:08Z</dc:date>
    <item>
      <title>xargs cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040062#M432700</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to cp a set of files.&lt;BR /&gt;I issue the command like this:&lt;BR /&gt;ls -ltr /apps/logs/ | grep -i stdout.log | xrags   cp /apps/logs/{} /home/z15/logs/&lt;BR /&gt;&lt;BR /&gt;I want to copy only the set of files that is as output of this command:&lt;BR /&gt;ls -ltr /apps/logs/ | grep -i stdout.log &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Andy</description>
      <pubDate>Fri, 13 Apr 2007 10:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040062#M432700</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-04-13T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: xargs cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040063#M432701</link>
      <description>ls -ltr /apps/log | grep -il stdout.log | xargs -i -n1 cp /apps/log/{} /home/z15/logs/</description>
      <pubDate>Fri, 13 Apr 2007 10:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040063#M432701</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: xargs cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040064#M432702</link>
      <description>Hi Andy:&lt;BR /&gt;&lt;BR /&gt;Why use 'ls'?&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;# find /apps/logs -type f -name stdout.log | xargs -i cp {} /home/z15logs&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 13 Apr 2007 10:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040064#M432702</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-13T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: xargs cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040065#M432703</link>
      <description>Use the pipeline below instead of the one in my last post:&lt;BR /&gt;&lt;BR /&gt;# ls -1 /apps/logs | xargs grep -il stdout.log | xargs -i cp {} /home/z15/logs/&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
      <pubDate>Fri, 13 Apr 2007 10:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040065#M432703</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T10:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: xargs cp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040066#M432704</link>
      <description>Thank you all.</description>
      <pubDate>Fri, 13 Apr 2007 11:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/xargs-cp/m-p/5040066#M432704</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-04-13T11:24:50Z</dc:date>
    </item>
  </channel>
</rss>

