<?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: Chown multiple dot files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934510#M410568</link>
    <description>one caveat for Alan's command:&lt;BR /&gt;&lt;BR /&gt;as .. (i.e. the upper directory) is found as a result of the find command, it may try to change the ownership of the files in the directory above which may wreak havoc in certain cases.</description>
    <pubDate>Tue, 18 Oct 2005 13:04:02 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-10-18T13:04:02Z</dc:date>
    <item>
      <title>Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934501#M410559</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a way to chown multiple dot files in a directory?  Obviously, chown .* is not the way to go, but I am tired of chowing each and every dot file in a directory.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;S</description>
      <pubDate>Tue, 18 Oct 2005 12:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934501#M410559</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-10-18T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934502#M410560</link>
      <description>Hi Sally,&lt;BR /&gt;&lt;BR /&gt;can we have&lt;BR /&gt;&lt;BR /&gt;# chown -R owner:group &lt;DIR name=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;/DIR&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934502#M410560</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-10-18T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934503#M410561</link>
      <description>find . -type f -name '.*' -prune -exec owner:group {} \;</description>
      <pubDate>Tue, 18 Oct 2005 12:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934503#M410561</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-10-18T12:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934504#M410562</link>
      <description>That does all the regular files but not the dot files (ie: .profile, .dt, .abc, etc)</description>
      <pubDate>Tue, 18 Oct 2005 12:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934504#M410562</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-10-18T12:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934505#M410563</link>
      <description>chown XXX .[a-z,A-Z,0-9]*&lt;BR /&gt;&lt;BR /&gt;this will change the ownership of most every dot file in a given directory.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2005 12:59:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934505#M410563</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-18T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934506#M410564</link>
      <description>oops&lt;BR /&gt;&lt;BR /&gt;find . -type f -name '.*' -prune -exec chown owner:group {} \;</description>
      <pubDate>Tue, 18 Oct 2005 12:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934506#M410564</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-10-18T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934507#M410565</link>
      <description>They're usually the first files in a long listing ("ll"). If you know how many there are, try this:&lt;BR /&gt;&lt;BR /&gt;ll | grep -v total | head -7 | awk '{print $9}'&lt;BR /&gt;&lt;BR /&gt;The 7 would be the number of files in the directory that you want.&lt;BR /&gt;&lt;BR /&gt;You can put that into a for-do loop or a maybe an xargs pipe.&lt;BR /&gt;&lt;BR /&gt;Not so elegant, but I hope that helps.</description>
      <pubDate>Tue, 18 Oct 2005 13:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934507#M410565</guid>
      <dc:creator>Andy Torres</dc:creator>
      <dc:date>2005-10-18T13:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934508#M410566</link>
      <description>Thanks Alan</description>
      <pubDate>Tue, 18 Oct 2005 13:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934508#M410566</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-10-18T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934509#M410567</link>
      <description>NOTE:&lt;BR /&gt;It will also chown the . files in subdirectories downstream from the current directiory.</description>
      <pubDate>Tue, 18 Oct 2005 13:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934509#M410567</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-10-18T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934510#M410568</link>
      <description>one caveat for Alan's command:&lt;BR /&gt;&lt;BR /&gt;as .. (i.e. the upper directory) is found as a result of the find command, it may try to change the ownership of the files in the directory above which may wreak havoc in certain cases.</description>
      <pubDate>Tue, 18 Oct 2005 13:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934510#M410568</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-18T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934511#M410569</link>
      <description>My tests of the included find command show that it does not go to the parent directory, but it does travel down the subdirectories below.</description>
      <pubDate>Tue, 18 Oct 2005 13:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934511#M410569</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-10-18T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Chown multiple dot files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934512#M410570</link>
      <description>Let regexp do the work for you (find is not necessary). You already know that .* will match . and .. (not good!) so just tell regexp to not include a match if the second character is a dot:&lt;BR /&gt; &lt;BR /&gt;chown user1:group2 .[!.]*&lt;BR /&gt; &lt;BR /&gt;As with any sweeping command using filename matching, always verify the results with a preview:&lt;BR /&gt; &lt;BR /&gt;echo chown user1:group2 .[!.]*&lt;BR /&gt; &lt;BR /&gt;Oops. This will not match . or .. but it does match directories and that might not be desired. In that case, use find to locate only files.</description>
      <pubDate>Tue, 18 Oct 2005 13:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chown-multiple-dot-files/m-p/4934512#M410570</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-18T13:32:19Z</dc:date>
    </item>
  </channel>
</rss>

