On Tue, Feb 12, 2013 at 10:39 AM, Chris Down <ch...@chrisdown.name> 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. cheers! mar77i