<?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: need help with shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032443#M431173</link>
    <description>Hi,&lt;BR /&gt;could you please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#41" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#41&lt;/A&gt;&lt;BR /&gt;and then&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;How much time/frustration did the answers save you ?</description>
    <pubDate>Thu, 08 Mar 2007 07:00:56 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2007-03-08T07:00:56Z</dc:date>
    <item>
      <title>need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032437#M431167</link>
      <description>I want my script to move files that are older than 5 days to a archive directory, but I am unable do it. Can you give ideas? Below is what I tried:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;ls -altr /var/.audit &amp;gt;&amp;gt; /tmp/AuditMove.txt&lt;BR /&gt;find /var/.audit/*.* -mtime +5 -exec mv {} \;&lt;BR /&gt;&lt;BR /&gt;exit</description>
      <pubDate>Wed, 07 Mar 2007 09:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032437#M431167</guid>
      <dc:creator>vz7r1x</dc:creator>
      <dc:date>2007-03-07T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032438#M431168</link>
      <description>find /var/.audit/ -mtime +5 -exec mv {} \;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 07 Mar 2007 09:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032438#M431168</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2007-03-07T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032439#M431169</link>
      <description>Hi,&lt;BR /&gt;does your mv fail ?&lt;BR /&gt;You have not defined where you want to move the files to !&lt;BR /&gt;&lt;BR /&gt;You need something like:&lt;BR /&gt;# find /var/.audit/*.* -mtime +5 -exec mv {} /tmp/ \;&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.</description>
      <pubDate>Wed, 07 Mar 2007 09:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032439#M431169</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-07T09:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032440#M431170</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -mtime +5 | xargs -i mv {} /newpath&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 07 Mar 2007 09:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032440#M431170</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-07T09:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032441#M431171</link>
      <description>Thanks you all. solved my problem. I was not placing {} properly. Thanks Peter and James.</description>
      <pubDate>Wed, 07 Mar 2007 10:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032441#M431171</guid>
      <dc:creator>vz7r1x</dc:creator>
      <dc:date>2007-03-07T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032442#M431172</link>
      <description>Thanks</description>
      <pubDate>Wed, 07 Mar 2007 10:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032442#M431172</guid>
      <dc:creator>vz7r1x</dc:creator>
      <dc:date>2007-03-07T10:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032443#M431173</link>
      <description>Hi,&lt;BR /&gt;could you please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#41" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#41&lt;/A&gt;&lt;BR /&gt;and then&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;How much time/frustration did the answers save you ?</description>
      <pubDate>Thu, 08 Mar 2007 07:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032443#M431173</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-08T07:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: need help with shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032444#M431174</link>
      <description>Peter&lt;BR /&gt;I really love this forum and I told my HP reps so many times about greatness of this forum and its members. This reply saved me enormous time, hours of my time.&lt;BR /&gt;&lt;BR /&gt;Now I am trying to learn enough to contribute to this forum too, its like paying back to the forum in return for what I gain from it.&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 08 Mar 2007 07:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-with-shell-script/m-p/5032444#M431174</guid>
      <dc:creator>vz7r1x</dc:creator>
      <dc:date>2007-03-08T07:27:25Z</dc:date>
    </item>
  </channel>
</rss>

