Re: grep question
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 [cjwatson@flatline.org.uk]
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: