<?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: confusion about grep ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869067#M45053</link>
    <description>enjoy, life&lt;BR /&gt;&lt;BR /&gt;J-P</description>
    <pubDate>Fri, 05 Nov 2004 12:14:35 GMT</pubDate>
    <dc:creator>Huc_1</dc:creator>
    <dc:date>2004-11-05T12:14:35Z</dc:date>
    <item>
      <title>confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869060#M45046</link>
      <description>Am I missing something ?  &lt;BR /&gt;&lt;BR /&gt;# ls -d /proc/* | grep [0-9]&lt;BR /&gt;&lt;BR /&gt;If I use the above grep command as root and from the /root directory ... the grep command is working as i would expect it to ( it return the list of all the /proc/'pid' of curently running processes )&lt;BR /&gt;&lt;BR /&gt;But if I cd to an other directory I get no /proc/'pid' return ?&lt;BR /&gt;&lt;BR /&gt;I dont get this !? &lt;BR /&gt;&lt;BR /&gt;also if replace [0-9] with [1-0] I do get some /proc/'pid' return ... why ? any ideas !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;J-P ( Who will gladly assign points to any light on this !) &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 07:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869060#M45046</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-11-05T07:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869061#M45047</link>
      <description>I've just tried it on Fedora2 and on RHEL 3.&lt;BR /&gt;Works fine on both machines from any directory.&lt;BR /&gt;Looks like you have a misconfigured enviroment.&lt;BR /&gt;You can always post an output from env command + The version of Linux you use.&lt;BR /&gt;&lt;BR /&gt;P.S. Reboot might help.</description>
      <pubDate>Fri, 05 Nov 2004 07:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869061#M45047</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-11-05T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869062#M45048</link>
      <description>Hey Alexander ... nearly there ah ah  ;-) &lt;BR /&gt;&lt;BR /&gt;Keep it up I would gladly see you change hats  ;-) &lt;BR /&gt;&lt;BR /&gt;I run Fedora 2 on this setup and get the same result if I do this as root or as ordinary user&lt;BR /&gt;&lt;BR /&gt;I will try this on an other system the I also configured for Fedora core 2&lt;BR /&gt;&lt;BR /&gt;keep up the good work  ;-) &lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 07:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869062#M45048</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-11-05T07:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869063#M45049</link>
      <description>Huc,&lt;BR /&gt;&lt;BR /&gt;I try on RedHat 8. No root user. Now the problem is when you have some directories with names 0,1,2... The workarround is:&lt;BR /&gt;&lt;BR /&gt;ls -d /proc/* | grep "[0-9]"&lt;BR /&gt;&lt;BR /&gt;Try: echo [0-9] to see what hapens.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Fri, 05 Nov 2004 07:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869063#M45049</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-05T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869064#M45050</link>
      <description>Sorry for delay, have now checked on other Fedora core 2 system and on that system it works as expected&lt;BR /&gt;&lt;BR /&gt;I have done an output of env as root to a file and compare the output the only diferrence is one is on LANG=fr_BE,UTF-8 (this one is giving problem) the other is on LANG=en_US,UTF-8 (this one is working as expected)&lt;BR /&gt;&lt;BR /&gt;Bojan, you are right, your string works but I did not have directory's with 0,1,etc.. &lt;BR /&gt;&lt;BR /&gt;I will later (+- one hour hopfully , have some meeting)  create a dummy user using LANG=en_US on and see if this give better output.&lt;BR /&gt;&lt;BR /&gt;But as often I thing Alexander is right ! hence the reason why he deserves a crown !&lt;BR /&gt;&lt;BR /&gt;J-P</description>
      <pubDate>Fri, 05 Nov 2004 08:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869064#M45050</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-11-05T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869065#M45051</link>
      <description>Thanks J.P. :)&lt;BR /&gt;You and "the Steven" were the inspiration.&lt;BR /&gt;zero points please.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 08:16:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869065#M45051</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-11-05T08:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869066#M45052</link>
      <description>Ok it is wrong env setup problem&lt;BR /&gt;&lt;BR /&gt;this goes away when I change the LANG env to&lt;BR /&gt;&lt;BR /&gt;#export LANG=en_US.UTF-8&lt;BR /&gt;&lt;BR /&gt;I have also changed this in &lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/i18n&lt;BR /&gt;&lt;BR /&gt;Thank for your help.&lt;BR /&gt;&lt;BR /&gt;Jean-Pierre&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2004 12:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869066#M45052</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-11-05T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: confusion about grep ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869067#M45053</link>
      <description>enjoy, life&lt;BR /&gt;&lt;BR /&gt;J-P</description>
      <pubDate>Fri, 05 Nov 2004 12:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/confusion-about-grep/m-p/4869067#M45053</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2004-11-05T12:14:35Z</dc:date>
    </item>
  </channel>
</rss>

