<?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: Supplying find command with multiple filenames in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300763#M338049</link>
    <description>&amp;gt;following file types on a HP-UX-11:&lt;BR /&gt;1) *.sh&lt;BR /&gt;2) *.csh&lt;BR /&gt;3) *.perf&lt;BR /&gt;4) checkcomp*&lt;BR /&gt;&lt;BR /&gt;find path1 path2 \( -name "*.sh" -o -name "*.csh" -o -name "*.perf" \&lt;BR /&gt;-o -name "checkcomp*" \) ...&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Nov 2008 11:20:57 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-11-05T11:20:57Z</dc:date>
    <item>
      <title>Supplying find command with multiple filenames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300762#M338048</link>
      <description>HI, &lt;BR /&gt;&lt;BR /&gt;I'm attempting to do a dos2unix for several files with different pattern names, all of which are located in different directory locations. &lt;BR /&gt;&lt;BR /&gt;I need to do a dos2unix on the following file types on a HPUX-11:&lt;BR /&gt;i) *.sh&lt;BR /&gt;ii) *.csh&lt;BR /&gt;iii)*.perf&lt;BR /&gt;iv) checkcomp*&lt;BR /&gt;&lt;BR /&gt;I could do a for loop, and supply the for loop with the filenames listed in (i) - (iv), if they are all located in the same directory. However, it's not the case here. &lt;BR /&gt;&lt;BR /&gt;How do I supply multiple filenames as arguments into the find command ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Danny.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300762#M338048</guid>
      <dc:creator>Danny Fang</dc:creator>
      <dc:date>2008-11-05T11:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying find command with multiple filenames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300763#M338049</link>
      <description>&amp;gt;following file types on a HP-UX-11:&lt;BR /&gt;1) *.sh&lt;BR /&gt;2) *.csh&lt;BR /&gt;3) *.perf&lt;BR /&gt;4) checkcomp*&lt;BR /&gt;&lt;BR /&gt;find path1 path2 \( -name "*.sh" -o -name "*.csh" -o -name "*.perf" \&lt;BR /&gt;-o -name "checkcomp*" \) ...&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300763#M338049</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-05T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying find command with multiple filenames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300764#M338050</link>
      <description>&lt;!--!*#--&gt;Bonjour,&lt;BR /&gt;&lt;BR /&gt;Following Denis's answer, something like :&lt;BR /&gt;&lt;BR /&gt;find path1 path2 -type f \( -name "*.sh" -o -name "*.csh" -o -name "*.perf" -o -name "checkcomp*" \) | while read FILE&lt;BR /&gt;do&lt;BR /&gt;   echo "Working on $FILE ... \c"&lt;BR /&gt;   cp -p "$FILE" "$FILE".old&lt;BR /&gt;   dos2ux $FILE.old &amp;gt; $FILE&lt;BR /&gt;   echo "terminated"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Of course make some tests before applying this&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 11:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300764#M338050</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-11-05T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying find command with multiple filenames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300765#M338051</link>
      <description>One shot you can do this by the following command if you don't want to preserver the original file.&lt;BR /&gt;&lt;BR /&gt;find . -name '*-M' -o -name '*-D' -o -name '*-C' -exec dos2ux {} \;&lt;BR /&gt;&lt;BR /&gt;Manoj K</description>
      <pubDate>Thu, 06 Nov 2008 07:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300765#M338051</guid>
      <dc:creator>ManojK_1</dc:creator>
      <dc:date>2008-11-06T07:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Supplying find command with multiple filenames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300766#M338052</link>
      <description>One shot you can do this by the following command if you don't want to preserver the original file.&lt;BR /&gt;&lt;BR /&gt;find . -name '*.sh' -o -name '*.csh' -o -name '*.perf' -o -name 'checkcomp'-exec dos2ux {} \;&lt;BR /&gt;&lt;BR /&gt;Manoj K</description>
      <pubDate>Thu, 06 Nov 2008 07:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/supplying-find-command-with-multiple-filenames/m-p/4300766#M338052</guid>
      <dc:creator>ManojK_1</dc:creator>
      <dc:date>2008-11-06T07:32:26Z</dc:date>
    </item>
  </channel>
</rss>

