<?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 File copy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736614#M66664</link>
    <description>I want to copy few files from here to there.&lt;BR /&gt;These files all are start with tw* But my problem is I don't want few files those are having .txt extension but they also are starts with tw*&lt;BR /&gt;cp tw* to destination dir would copy all the files starts with tw , but I don't want one with  .txt&lt;BR /&gt;How do I do this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Jun 2002 18:11:15 GMT</pubDate>
    <dc:creator>Rushank</dc:creator>
    <dc:date>2002-06-03T18:11:15Z</dc:date>
    <item>
      <title>File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736614#M66664</link>
      <description>I want to copy few files from here to there.&lt;BR /&gt;These files all are start with tw* But my problem is I don't want few files those are having .txt extension but they also are starts with tw*&lt;BR /&gt;cp tw* to destination dir would copy all the files starts with tw , but I don't want one with  .txt&lt;BR /&gt;How do I do this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 18:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736614#M66664</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-06-03T18:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736615#M66665</link>
      <description>Prepare a list of files and then give "|grep -v *.txt. It will give the list of the file you want to copy. Thegive the copy command.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Mon, 03 Jun 2002 18:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736615#M66665</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-06-03T18:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736616#M66666</link>
      <description>Rushank,&lt;BR /&gt;&lt;BR /&gt;find / \( -name 'tw*' -a ! -name '*.txt' \) -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;would do it for you.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 03 Jun 2002 18:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736616#M66666</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-03T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736617#M66667</link>
      <description>This might be another solution:&lt;BR /&gt;&lt;BR /&gt;# cd dir&lt;BR /&gt;# find . \( -name 'tw*' ! -name '*.txt' \) -depth | cpio -pdlmuva dest_dir&lt;BR /&gt;&lt;BR /&gt;The 'expression' checks the condition and copy the files matches to the dest_dir</description>
      <pubDate>Mon, 03 Jun 2002 18:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736617#M66667</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-03T18:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736618#M66668</link>
      <description>Hi Rushank&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;do a&lt;BR /&gt;&lt;BR /&gt;ls tw* | grep -v txt &amp;gt; list&lt;BR /&gt;&lt;BR /&gt;cp 'cat list' &amp;lt; destiantion &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 03 Jun 2002 18:34:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736618#M66668</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-03T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736619#M66669</link>
      <description>This could work too .. for example ..&lt;BR /&gt;&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# find . \( -name 'tw*' -a ! -name '*.txt' \) -exec cp {} /test \; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 18:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736619#M66669</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-03T18:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736620#M66670</link>
      <description>cp `ls -d tw* | grep -v 'txt$'` "destination_directory"</description>
      <pubDate>Mon, 03 Jun 2002 18:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736620#M66670</guid>
      <dc:creator>Mladen Despic</dc:creator>
      <dc:date>2002-06-03T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736621#M66671</link>
      <description>In my previous example, the files "tw*" ending in "txt" are filtered out.  If you want to include the dot in front of "txt", try this:&lt;BR /&gt;&lt;BR /&gt;cp `ls -d tw* | grep -v '\.txt$'` "destination_directory"</description>
      <pubDate>Mon, 03 Jun 2002 18:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736621#M66671</guid>
      <dc:creator>Mladen Despic</dc:creator>
      <dc:date>2002-06-03T18:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: File copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736622#M66672</link>
      <description>&lt;BR /&gt;find /tmp -type f -name "tw*" | grep -v "\.txt$" | xargs -i cp {} /var/tmp&lt;BR /&gt;&lt;BR /&gt;Will copy files, that start with  "tw" and aren't ".txt" files, from /tmp to /var/tmp.&lt;BR /&gt;&lt;BR /&gt;Pete,&lt;BR /&gt;&lt;BR /&gt;I'm not sure he want's to remove the original (the -exec rm {} clause).&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 03 Jun 2002 19:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-copy/m-p/2736622#M66672</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-03T19:01:35Z</dc:date>
    </item>
  </channel>
</rss>

