On Wed, 8 Mar 2000 bernie@pertsounds.com wrote:
> perl -pe 's/^CONFIG_//;s/^\#.*//;s/\=y$//;s/^\s*$//' .config
sed '/^CONFIG/!d;s/CONFIG_//;s/=y//' .config
..a bit easier to read, shorter, faster :)
shall we have a competition to improve this regex even more?
(sed)
real 0m0.026s
user 0m0.020s
sys 0m0.000s
(perl)
real 0m0.037s
user 0m0.080s
sys 0m0.000s
-d
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:14 EST