<?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: omit hidden directories on a find in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147067#M683391</link>
    <description>Hi Scott:&lt;BR /&gt;&lt;BR /&gt;This is expected.  The '-name' argument applies to the *basename* of the path travesed.  Thus only the *file* (not the heirarchal patch) is considered.&lt;BR /&gt;&lt;BR /&gt;Therefore:&lt;BR /&gt;&lt;BR /&gt;# -type f ! -path "*.*" -print&lt;BR /&gt;&lt;BR /&gt;...should solve your problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 18 Dec 2008 18:04:39 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-12-18T18:04:39Z</dc:date>
    <item>
      <title>omit hidden directories on a find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147066#M683390</link>
      <description>I am setting up an rsync process and want to omit hidden files and hidden directories from the file list.  I can omit hidden files by using this in the find command:&lt;BR /&gt;&lt;BR /&gt;find . ! -name ".*" -type f &lt;BR /&gt;&lt;BR /&gt;This will skip files like:&lt;BR /&gt;&lt;BR /&gt;./myid/.cshrc&lt;BR /&gt;./myid/.exrc&lt;BR /&gt;./myid/.login&lt;BR /&gt;./myid/.profile&lt;BR /&gt;./myid/.sh_history&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But hidden directories like this still slip through:&lt;BR /&gt;&lt;BR /&gt;./myid/.ssh/known_hosts&lt;BR /&gt;&lt;BR /&gt;I have not been able to find the proper pattern to use in a 'grep -v' to add after the find to omit any . directory.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;Scott&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 17:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147066#M683390</guid>
      <dc:creator>Scott Lindstrom_2</dc:creator>
      <dc:date>2008-12-18T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: omit hidden directories on a find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147067#M683391</link>
      <description>Hi Scott:&lt;BR /&gt;&lt;BR /&gt;This is expected.  The '-name' argument applies to the *basename* of the path travesed.  Thus only the *file* (not the heirarchal patch) is considered.&lt;BR /&gt;&lt;BR /&gt;Therefore:&lt;BR /&gt;&lt;BR /&gt;# -type f ! -path "*.*" -print&lt;BR /&gt;&lt;BR /&gt;...should solve your problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Dec 2008 18:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147067#M683391</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-18T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: omit hidden directories on a find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147068#M683392</link>
      <description>Hi (again) Scott:&lt;BR /&gt;&lt;BR /&gt;Oops:&lt;BR /&gt;&lt;BR /&gt;# find /path -type f ! -path "*.*" -print&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Dec 2008 18:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147068#M683392</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-18T18:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: omit hidden directories on a find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147069#M683393</link>
      <description>&amp;gt;JRF: find /path -type f ! -path "*.*"&lt;BR /&gt;&lt;BR /&gt;You probably want something that will still return foo.c:  :-)&lt;BR /&gt;find /path -type f ! -path "*/.*"</description>
      <pubDate>Thu, 18 Dec 2008 20:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147069#M683393</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-18T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: omit hidden directories on a find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147070#M683394</link>
      <description>James - yours was 99% there but it omitted any file with a dot in it.  &lt;BR /&gt;&lt;BR /&gt;Dennis - thanks for your solution - this looks like it's going to work great!&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Fri, 19 Dec 2008 19:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/omit-hidden-directories-on-a-find/m-p/5147070#M683394</guid>
      <dc:creator>Scott Lindstrom_2</dc:creator>
      <dc:date>2008-12-19T19:12:12Z</dc:date>
    </item>
  </channel>
</rss>

