Re: Frage zu grep
Hallo Wolf,
Wolf Wiegand <wolf@kondancemilch.de> wrote:
> Jörg Sommer wrote:
>
>> Alexander Schmehl <tolimar@debian.org> wrote:
>>
>> > Vergleiche "ps w|grep 'ps'" und "ps w|grep '[p]s'".
>>
>> Ahh, jetzt sehe ich es. Geniale Idee.
>
> Ok, ich sehe es nicht. Warum/wie funktioniert das?
Weil ps den Prozess „grep [p]…“ anzeigt. Wenn du aber auf [p]… (das ist
eine Regexp) matchet, dann passt das nicht zu den eckigen Klammern [p]
(das ist die Zeichenkette, die offensichtlich nicht mit einem ‚p‘
beginnt).
Nächtliche Grüße, Jörg.
--
"...anytime you install something new on the Windows platform, you risk
spending the next five or six hours trying to figure out what happened"
-- Robert Roblin, Adobe
Reply to: