-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Vinu" == Vinu Balaji <[EMAIL PROTECTED]> writes:
Vinu> On Wed, 22 Dec 2004 09:38:47 +0530, Kumar Appaiah
Vinu> <[EMAIL PROTECTED]> wrote:
>> Dear List, This query relates to grep. In the command
>>
>> # ps ax|grep 'cron'
Vinu> The output of this command will show 'grep cron' as a
Vinu> process sometimes and will not show that process at
Vinu> times. So grep '[c]ron' and grep 'cron' are almost the same
Vinu> expression.
grep [c]ron will search for the regex "[c]ron", which will only match
the string "cron". The regex will not match the string "[c]ron".
String "[c]ron" is not the same as Regex "[c]ron".
Another way of achieving the same effect is:
ps ax | fgrep cron | fgrep -v fgrep
Regards,
- -- Raju
- --
Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFByQuNyWjQ78xo0X8RAmiYAJ9SgnLHCkCPfz/9er+b0WGG5g1yDQCfU/ct
ZbYG6I3nXjRLLGwxZTMZqqo=
=78Bv
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help