<?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: move file script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198511#M680609</link>
    <description>Thanks.</description>
    <pubDate>Thu, 10 Sep 2009 14:19:19 GMT</pubDate>
    <dc:creator>rhansen</dc:creator>
    <dc:date>2009-09-10T14:19:19Z</dc:date>
    <item>
      <title>move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198507#M680605</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to move a file on many servers. I am going to use a find command to find the file under /home and if it is found then move it to /var.&lt;BR /&gt;Like find / -name abc.txt and if abc.txt is found then move it to /var.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me how I can do this using a simple script.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 10 Sep 2009 13:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198507#M680605</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-09-10T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198508#M680606</link>
      <description>Use:&lt;BR /&gt;---&lt;BR /&gt;find / -name abc.txt -exec mv {} /var \;&lt;BR /&gt;---</description>
      <pubDate>Thu, 10 Sep 2009 13:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198508#M680606</guid>
      <dc:creator>davesec</dc:creator>
      <dc:date>2009-09-10T13:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198509#M680607</link>
      <description>How about using the find command only to look at a specific location like just /tmp.</description>
      <pubDate>Thu, 10 Sep 2009 14:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198509#M680607</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-09-10T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198510#M680608</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How about using the find command only to look at a specific location like just /tmp.&lt;BR /&gt;&lt;BR /&gt;Of course, in fact you can look at multiple locations all at once:&lt;BR /&gt;&lt;BR /&gt;# find /tmp /home -xdev -type f -name "*.log"&lt;BR /&gt;&lt;BR /&gt;It is generally a good idea to add the '-xdev' argument to prevent crossing mountpoints.  This can be especially important when visiting the '/' directory.&lt;BR /&gt;&lt;BR /&gt;The '-type f' argument means confine results only to files; not directories, for instance.&lt;BR /&gt;&lt;BR /&gt;The double quotes around the '-name' argument prevent the shell from expanding the filename.  This lets the expression be passed along to 'find'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198510#M680608</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-10T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198511#M680609</link>
      <description>Thanks.</description>
      <pubDate>Thu, 10 Sep 2009 14:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198511#M680609</guid>
      <dc:creator>rhansen</dc:creator>
      <dc:date>2009-09-10T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: move file script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198512#M680610</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I see that you are new to this Forum. Welcome!&lt;BR /&gt;&lt;BR /&gt;That said, please read the link below about points. Points are not only a way of saying "thanks!" but bread-crumbs for future trollers to find the tastiest (most applicable) solution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 10 Sep 2009 14:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-file-script/m-p/5198512#M680610</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-10T14:48:35Z</dc:date>
    </item>
  </channel>
</rss>

