<?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: Grepping issues.. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151823#M90647</link>
    <description>Hi (again) Patrick:&lt;BR /&gt;&lt;BR /&gt;# VAR=5242880&lt;BR /&gt;# echo " 5242880 "|grep " ${VAR} "&lt;BR /&gt; 5242880&lt;BR /&gt;&lt;BR /&gt;That is, reference the variable just like you would when you interpolate it the shell.  Notice that is is good practive to encapsulate the variable name in curly braces as shown.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 27 Feb 2008 20:52:11 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-02-27T20:52:11Z</dc:date>
    <item>
      <title>Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151820#M90644</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I found another problem with my disk-adding script today.  When looking for disks, I use grep.  &lt;BR /&gt;When I grep for the following disk sizes:&lt;BR /&gt;&lt;BR /&gt;5242880&lt;BR /&gt;&lt;BR /&gt;I also pick up these as well:&lt;BR /&gt;524288000&lt;BR /&gt;&lt;BR /&gt;How do I specifically pick out one or the other, using grep, without resorting to the -v option?&lt;BR /&gt;&lt;BR /&gt;If I can't use grep, I'll have to totally revamp the script...&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2008 19:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151820#M90644</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2008-02-27T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151821#M90645</link>
      <description>Hi Patrick:&lt;BR /&gt;&lt;BR /&gt;You need to anchor your regular expression or modify it to fit the context you want to match.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;# grep " 5242880 "&lt;BR /&gt;&lt;BR /&gt;...would find matches that are bounded by a space on either side.&lt;BR /&gt;&lt;BR /&gt;# grep "^5242880$"&lt;BR /&gt;&lt;BR /&gt;...would demand that the string matched only if it was anchored to the beginning (^) and the end ($) of the line.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151821#M90645</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-27T20:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151822#M90646</link>
      <description>Thanks for your reply.  One more question:&lt;BR /&gt;I set the disk sizes to a variable called $SIZE.  How would it work with a variable?</description>
      <pubDate>Wed, 27 Feb 2008 20:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151822#M90646</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2008-02-27T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151823#M90647</link>
      <description>Hi (again) Patrick:&lt;BR /&gt;&lt;BR /&gt;# VAR=5242880&lt;BR /&gt;# echo " 5242880 "|grep " ${VAR} "&lt;BR /&gt; 5242880&lt;BR /&gt;&lt;BR /&gt;That is, reference the variable just like you would when you interpolate it the shell.  Notice that is is good practive to encapsulate the variable name in curly braces as shown.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 27 Feb 2008 20:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151823#M90647</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-27T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151824#M90648</link>
      <description>I am not understanding.&lt;BR /&gt;Here is an example of the what I am doing:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unix.com/showthread.php?p=302171123&amp;amp;posted=1#post302171123" target="_blank"&gt;http://www.unix.com/showthread.php?p=302171123&amp;amp;posted=1#post302171123&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151824#M90648</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2008-02-27T21:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151825#M90649</link>
      <description>grep -w worked like a charm.  &lt;BR /&gt;&lt;BR /&gt;Thanks to all!&lt;BR /&gt;&lt;BR /&gt;I am always open to better solutions.</description>
      <pubDate>Wed, 27 Feb 2008 21:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151825#M90649</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2008-02-27T21:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151826#M90650</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Patrick, why is this post a VERBATIM copy from another forum site?  INCLUDING someone else's suggestion to use the '-w' switch of grep !!!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:38:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151826#M90650</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-27T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151827#M90651</link>
      <description>I asked the same question over there.  I always go back and post what worked for me.</description>
      <pubDate>Wed, 27 Feb 2008 22:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151827#M90651</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2008-02-27T22:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Grepping issues..</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151828#M90652</link>
      <description>&amp;gt;grep -w worked like a charm.&lt;BR /&gt;&amp;gt;I am always open to better solutions.&lt;BR /&gt;&lt;BR /&gt;That's what I would have suggested.</description>
      <pubDate>Thu, 28 Feb 2008 05:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grepping-issues/m-p/4151828#M90652</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-02-28T05:39:14Z</dc:date>
    </item>
  </channel>
</rss>

