<?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: find and -exec in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363383#M35335</link>
    <description>&amp;gt;Steven: If you really want to do two things&lt;BR /&gt;&lt;BR /&gt;You can also invoke a script to do what you want.  You may want your script to be able to handle multiple files by using a for or while loop.</description>
    <pubDate>Sat, 21 Feb 2009 15:52:09 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-02-21T15:52:09Z</dc:date>
    <item>
      <title>find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363381#M35333</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;I'd like to do something like this:&lt;BR /&gt;&lt;BR /&gt;find /su01 -name webutil.plx -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;but before the erase i'd like to copy the file with the extension .20090220 to have by example the file webutil.plx.20090220. &lt;BR /&gt;&lt;BR /&gt;(Note. copy before because I want a new inode)&lt;BR /&gt;&lt;BR /&gt;How to do this small affair ?&lt;BR /&gt;&lt;BR /&gt;bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Fri, 20 Feb 2009 20:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363381#M35333</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2009-02-20T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363382#M35334</link>
      <description>&amp;gt; (Note. copy before because I want a new&lt;BR /&gt;&amp;gt; inode)&lt;BR /&gt;&lt;BR /&gt;Why?  "mv" makes more sense to me than a&lt;BR /&gt;copy-and-delete scheme.&lt;BR /&gt;&lt;BR /&gt;If you really want to do two things, you can&lt;BR /&gt;use more than one "-exec" clause in one&lt;BR /&gt;"find" command.</description>
      <pubDate>Fri, 20 Feb 2009 22:01:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363382#M35334</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-02-20T22:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363383#M35335</link>
      <description>&amp;gt;Steven: If you really want to do two things&lt;BR /&gt;&lt;BR /&gt;You can also invoke a script to do what you want.  You may want your script to be able to handle multiple files by using a for or while loop.</description>
      <pubDate>Sat, 21 Feb 2009 15:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363383#M35335</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-21T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363384#M35336</link>
      <description>you can do something like &lt;BR /&gt;* backing up all webutil.plx in a tar and removing them&lt;BR /&gt;&lt;BR /&gt;$tar cvf plx.tar $(find ./ -name webutil.plx) &amp;amp;&amp;amp; find ./ -name webutil.plx -ok rm {} \;</description>
      <pubDate>Mon, 23 Feb 2009 16:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363384#M35336</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-02-23T16:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363385#M35337</link>
      <description>And you can extract from the tar the old files if needed.</description>
      <pubDate>Mon, 23 Feb 2009 16:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363385#M35337</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-02-23T16:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: find and -exec</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363386#M35338</link>
      <description>To rename the file from .plx to .20090220  extension.&lt;BR /&gt;&lt;BR /&gt;find /su01 -name webutil.plx |xargs rename .plx .20090220 &lt;BR /&gt;&lt;BR /&gt;To rename and create a new plx file.&lt;BR /&gt;&lt;BR /&gt;cd /su01&lt;BR /&gt;ls *.plx | awk -F"." '{print $1}' | while read file; do mv ${file}.plx ${file}.02232009; touch ${file}.plx; ls -il; done&lt;BR /&gt;&lt;BR /&gt;ls -i should show a different inode.</description>
      <pubDate>Mon, 23 Feb 2009 18:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-exec/m-p/4363386#M35338</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2009-02-23T18:35:28Z</dc:date>
    </item>
  </channel>
</rss>

