On Mon, Apr 08, 2002 at 04:41:08PM +0200, Johann Spies wrote: > In the grep's info page I find the following which works as said. But > I want to know why. What does the [c] do in this case?
'[abc]' matches any of the characters a, b, and c. '[c]' matches exactly a 'c', so '[c]ron' matches only 'cron'. Crucially, '[c]ron' doesn't match itself. I often find it more convenient to use the 'c' flag to ps, such as 'ps acx | grep cron'. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]