<?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: regex: exclude file from directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161661#M902483</link>
    <description>&lt;BR /&gt;I forgot to tell you something:&lt;BR /&gt;&lt;BR /&gt;This is for a veritas netbackup policy configuration which use regex library but not a pipe to grep.&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Jan 2004 07:48:58 GMT</pubDate>
    <dc:creator>Alexandre Arents</dc:creator>
    <dc:date>2004-01-12T07:48:58Z</dc:date>
    <item>
      <title>regex: exclude file from directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161659#M902481</link>
      <description>&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm looking for a regex pattern which exclude a specific file/directory and match all others within an directory, example:&lt;BR /&gt;&lt;BR /&gt;$ls -ld /rep/*&lt;BR /&gt;/rep/car&lt;BR /&gt;/rep/loft&lt;BR /&gt;/rep/andsoon&lt;BR /&gt;...&lt;BR /&gt;and I want to match all filename but not loft&lt;BR /&gt;&lt;BR /&gt;The best I found is:&lt;BR /&gt;ls -ld /rep/[^l]* &lt;BR /&gt;which exclude all filename beginning by 'l' but not the string "^loft$".&lt;BR /&gt;&lt;BR /&gt;Any idea ?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2004 07:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161659#M902481</guid>
      <dc:creator>Alexandre Arents</dc:creator>
      <dc:date>2004-01-12T07:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: regex: exclude file from directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161660#M902482</link>
      <description>Does it have to be with regexp(s) or would grep do?  &lt;BR /&gt;ls -ld /rep/* |grep -v loft&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 12 Jan 2004 07:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161660#M902482</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-01-12T07:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: regex: exclude file from directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161661#M902483</link>
      <description>&lt;BR /&gt;I forgot to tell you something:&lt;BR /&gt;&lt;BR /&gt;This is for a veritas netbackup policy configuration which use regex library but not a pipe to grep.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2004 07:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161661#M902483</guid>
      <dc:creator>Alexandre Arents</dc:creator>
      <dc:date>2004-01-12T07:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: regex: exclude file from directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161662#M902484</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;^ means beginning of string&lt;BR /&gt;! means not.&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;ls -ld /rep/* | grep -v /rep/loft&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2004 07:51:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161662#M902484</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-01-12T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: regex: exclude file from directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161663#M902485</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;btw, regular expressions and the way a shell evaluates file names are different. We need to know for sure, what veritas uses.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jan 2004 08:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regex-exclude-file-from-directory/m-p/3161663#M902485</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-01-12T08:00:00Z</dc:date>
    </item>
  </channel>
</rss>

