Re: [dev] Find window with dmenu

From: Martti Kühne <>
Date: Tue, 12 Feb 2013 13:18:33 +0100

On Tue, Feb 12, 2013 at 10:39 AM, Chris Down <> wrote:
> Just a comment on your method rather than your problem, calling ''grep''
> that many times through that many pipes is fairly expensive and should be
> avoided, since it has to create each new process and pass the same data
> through every single one. You'd be better using awk and a single pipe.
> Chris

Last time I checked, grep supports multiple -e arguments. also, with
egrep, you can use an "acutal" regex of the type 'a|b|c' or even
'a|b|c(d|e)' (matching 'a', 'b', 'cd' and 'de' at once)
Reading manpages really pays off.

Received on Tue Feb 12 2013 - 13:18:33 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:19:15 CET