<?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: Simple ? ls problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387348#M198697</link>
    <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;find . -type f \( ! -name \*.tar \)</description>
    <pubDate>Mon, 27 Sep 2004 05:33:45 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2004-09-27T05:33:45Z</dc:date>
    <item>
      <title>Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387344#M198693</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me how to get a list of files EXCEPT the ones with a specific extension, eg .tar ?</description>
      <pubDate>Mon, 27 Sep 2004 04:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387344#M198693</guid>
      <dc:creator>Jeff Picton</dc:creator>
      <dc:date>2004-09-27T04:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387345#M198694</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Not sure if there is an option to do this with ls but you could use ls | grep -v ".tar" and this would give you the same result.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 27 Sep 2004 05:13:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387345#M198694</guid>
      <dc:creator>Peter Leddy_1</dc:creator>
      <dc:date>2004-09-27T05:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387346#M198695</link>
      <description>Yes. we can do it with grep and ls as,&lt;BR /&gt;&lt;BR /&gt; ls  &lt;DIRECTORY&gt; | grep -v ".tar$"&lt;BR /&gt;&lt;BR /&gt;We can do recurvisely in sub-dir too with -F option of ls too.&lt;BR /&gt; &lt;BR /&gt; We can add two extension's with -E as,&lt;BR /&gt;&lt;BR /&gt; ls | grep -Ev ".gz$|.tar$"&lt;/DIRECTORY&gt;</description>
      <pubDate>Mon, 27 Sep 2004 05:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387346#M198695</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-27T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387347#M198696</link>
      <description>hi you  can't do it with ls command but with find command you can do .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; try to go thru the man page .</description>
      <pubDate>Mon, 27 Sep 2004 05:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387347#M198696</guid>
      <dc:creator>ramkumar</dc:creator>
      <dc:date>2004-09-27T05:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387348#M198697</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;find . -type f \( ! -name \*.tar \)</description>
      <pubDate>Mon, 27 Sep 2004 05:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387348#M198697</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-09-27T05:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387349#M198698</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;use&lt;BR /&gt;&lt;BR /&gt;find &lt;DIR&gt; ! -name "*.&lt;EXT_YOU_DONT_WANT&gt; -print&lt;BR /&gt;&lt;BR /&gt;eg&lt;BR /&gt;&lt;BR /&gt;find . ! -name "*.tar" -print (or -exec ls -l {} \;)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Franky&lt;/EXT_YOU_DONT_WANT&gt;&lt;/DIR&gt;</description>
      <pubDate>Mon, 27 Sep 2004 05:50:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387349#M198698</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-09-27T05:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple ? ls problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387350#M198699</link>
      <description>You can do this in a ksh (try it in a posix shell!):&lt;BR /&gt;&lt;BR /&gt;ls !(*.tar)&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 28 Sep 2004 10:07:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ls-problem/m-p/3387350#M198699</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2004-09-28T10:07:23Z</dc:date>
    </item>
  </channel>
</rss>

