<?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: grep and regexp in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919078#M93679</link>
    <description>(Adding this reply again.)&lt;BR /&gt;On 11.11, grep has a new -w option to do word searches.</description>
    <pubDate>Tue, 26 Jun 2007 04:49:20 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-06-26T04:49:20Z</dc:date>
    <item>
      <title>grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919067#M93668</link>
      <description>It seems that word delimiter \&amp;lt; and \&amp;gt; doesn't seem to work as expected.&lt;BR /&gt;&lt;BR /&gt;I have a file that contains words "The", "There", "These", etc. but &lt;BR /&gt;&lt;BR /&gt;grep \&lt;T yields="" nothing.=""&gt;&lt;/T&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Shawn</description>
      <pubDate>Tue, 04 Mar 2003 22:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919067#M93668</guid>
      <dc:creator>Shawn_45</dc:creator>
      <dc:date>2003-03-04T22:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919068#M93669</link>
      <description>grep -e '\&lt;T&gt;&lt;/T&gt;</description>
      <pubDate>Tue, 04 Mar 2003 22:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919068#M93669</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-03-04T22:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919069#M93670</link>
      <description>It didn't work. still nothing. in csh, this command yields all the lines that start with &lt;T such="" as="" all="" the="" html="" code="" with=""&gt;, &lt;TABLE&gt; etc.&lt;/TABLE&gt;&lt;/T&gt;</description>
      <pubDate>Mon, 10 Mar 2003 04:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919069#M93670</guid>
      <dc:creator>Shawn_45</dc:creator>
      <dc:date>2003-03-10T04:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919070#M93671</link>
      <description>hi,&lt;BR /&gt;does this help. it is on bash. btw, what shell are u working on.&lt;BR /&gt;&lt;BR /&gt;++++++++++++&lt;BR /&gt;cat a.txt &lt;BR /&gt; It seems that word delimiter \&amp;lt; and \&amp;gt; doesn't seem to work as expected.&lt;BR /&gt;&lt;BR /&gt;I have a file that contains words "The", "There", "These", etc. but&lt;BR /&gt;&lt;BR /&gt;grep \&lt;T yields="" nothing.=""&gt;&lt;/T&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Shawn&lt;BR /&gt;[balajin@penguin tmp]$ grep 'rk\&amp;gt;' a.txt &lt;BR /&gt; It seems that word delimiter \&amp;lt; and \&amp;gt; doesn't seem to work as expected.&lt;BR /&gt;[balajin@penguin tmp]$ grep '\&lt;WO&gt;&lt;/WO&gt; It seems that word delimiter \&amp;lt; and \&amp;gt; doesn't seem to work as expected.&lt;BR /&gt;I have a file that contains words "The", "There", "These", etc. but&lt;BR /&gt;++++++++++++&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Balaji</description>
      <pubDate>Mon, 10 Mar 2003 05:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919070#M93671</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-03-10T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919071#M93672</link>
      <description>Hi, Shawn!&lt;BR /&gt;&lt;BR /&gt;The question seems to be, what do you exect from "\&amp;lt;"... and why do you expect it? :-) &lt;BR /&gt;&lt;BR /&gt;The grep command understands RE and ERE (with -E) as described in rexexp(5).&lt;BR /&gt;&lt;BR /&gt;You could use this ERE:&lt;BR /&gt;&lt;BR /&gt;grep -E '([[:space:]]|^)T' &lt;BR /&gt;&lt;BR /&gt;This matches any "T" at the beginning of the line (^) or (|) being preceded by a whitespace ([[:space]]). &lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Mon, 10 Mar 2003 09:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919071#M93672</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-03-10T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919072#M93673</link>
      <description>He expects 'start of word', as every 'vi' user once does :)&lt;BR /&gt;&lt;BR /&gt;Modern egrep's support this feature (grep does not)&lt;BR /&gt;&lt;BR /&gt;# egrep '\&lt;WORD&gt;&lt;/WORD&gt;&lt;BR /&gt;This feature is one of the escapes that is not normalized accross the pattern matching programs. vi uses \&amp;lt;, as does egrep. emacs, .net, and sun's java package support the perl \b escape (emacs also supports \&amp;lt; and \&amp;gt;, but emacs lacks a decent user interface)&lt;BR /&gt;&lt;BR /&gt;If you compile grep/egrep/fgrep yourself from the source, and you already have PCRE (perl compatible regular expressions) installed, it also supports PCRE like regex syntax through -P:&lt;BR /&gt;&lt;BR /&gt;lep a5:/pro/local/bin 112 &amp;gt; grep --help&lt;BR /&gt;Usage: grep [OPTION]... PATTERN [FILE] ...&lt;BR /&gt;Search for PATTERN in each FILE or standard input.&lt;BR /&gt;Example: grep -i 'hello world' menu.h main.c&lt;BR /&gt;&lt;BR /&gt;Regexp selection and interpretation:&lt;BR /&gt;  -E, --extended-regexp     PATTERN is an extended regular expression&lt;BR /&gt;  -F, --fixed-strings       PATTERN is a set of newline-separated strings&lt;BR /&gt;  -G, --basic-regexp        PATTERN is a basic regular expression&lt;BR /&gt;  -P, --perl-regexp         PATTERN is a Perl regular expression&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Mon, 10 Mar 2003 11:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919072#M93673</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-03-10T11:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919073#M93674</link>
      <description>Hi Shawn,&lt;BR /&gt;&lt;BR /&gt;For the start of the sentence :&lt;BR /&gt;&lt;BR /&gt;grep ^The.* /tmp/2&lt;BR /&gt;&lt;BR /&gt;Somewhere in the middle :&lt;BR /&gt;&lt;BR /&gt;grep the.* /tmp/2&lt;BR /&gt;&lt;BR /&gt;Regs David</description>
      <pubDate>Mon, 10 Mar 2003 11:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919073#M93674</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-03-10T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919074#M93675</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I know most of you have way passed the level beyond the certificate books. What I was doing was to understand the materials presented in Rehman's book.&lt;BR /&gt;&lt;BR /&gt;Page 95: Use of the Word Delimeters \&amp;lt; and \&amp;gt;&lt;BR /&gt;&lt;BR /&gt;It simply didn't work. reason I could think of was that the system version I am running is not the latest:&lt;BR /&gt;&lt;BR /&gt;$uname -r&lt;BR /&gt;B.10.20&lt;BR /&gt;&lt;BR /&gt;To answer other's question, I am using posix shell.&lt;BR /&gt;&lt;BR /&gt;As a separate topic, although I found the book is overall well written, some sentences were a bit hard to understand. For example,&lt;BR /&gt;&lt;BR /&gt;Page 108 Changing the Owner and Group of a File.&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;"Any user other than the owner of the file can't change ownership of a file, except the superuser."&lt;BR /&gt;&lt;BR /&gt;Doesn't this mean&lt;BR /&gt;&lt;BR /&gt;"Only the owner and the superuser can change the ownership of a file"?&lt;BR /&gt;&lt;BR /&gt;Thanks for all your responses. I will give you points when I finish next chapter. :-)&lt;BR /&gt;&lt;BR /&gt;Shawn</description>
      <pubDate>Mon, 10 Mar 2003 16:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919074#M93675</guid>
      <dc:creator>Shawn_45</dc:creator>
      <dc:date>2003-03-10T16:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919075#M93676</link>
      <description>Hi, Shawn!&lt;BR /&gt;&lt;BR /&gt;If you issue grep '\&lt;T&gt;&lt;/T&gt;&lt;BR /&gt;As Merijn wrote, _some_ grep implementations allow that... but  not the HP-UX versions. Even not the latest ones.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Mon, 10 Mar 2003 16:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919075#M93676</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-03-10T16:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919076#M93677</link>
      <description>OK, I get it. I guess I don't have to ask next question: why did he put this in the book if this is not implemented? Am I supposed to assume that materials covered in the book are for HP-UX exam? Thanks for your explanation.&lt;BR /&gt;&lt;BR /&gt;Shawn</description>
      <pubDate>Mon, 10 Mar 2003 17:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919076#M93677</guid>
      <dc:creator>Shawn_45</dc:creator>
      <dc:date>2003-03-10T17:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919077#M93678</link>
      <description>You asked:&lt;BR /&gt;&amp;gt;Any user other than the owner of the file can't change ownership of a file, except the superuser." &lt;BR /&gt;&lt;BR /&gt;&amp;gt;Doesn't this mean &lt;BR /&gt;&lt;BR /&gt;&amp;gt;"Only the owner and the superuser can change the ownership of a file"? &lt;BR /&gt;&lt;BR /&gt;The Rahman book is good, but sometimes (as you point out) his use of English is strained.  The answer is: yes--only the owner of a file and/or the superuser can change the permission or ownership of that file.&lt;BR /&gt;&lt;BR /&gt;The book has other areas of difficulty: pay STRICT attention to the networking theory.  It almost doesn't cover it in the depth asked on the test.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Mar 2003 19:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919077#M93678</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-03-10T19:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: grep and regexp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919078#M93679</link>
      <description>(Adding this reply again.)&lt;BR /&gt;On 11.11, grep has a new -w option to do word searches.</description>
      <pubDate>Tue, 26 Jun 2007 04:49:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grep-and-regexp/m-p/2919078#M93679</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-26T04:49:20Z</dc:date>
    </item>
  </channel>
</rss>

