David Ford wrote:
> 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?
FWIW,
sed 's/=y//;/^CONFIG_/s///p;d' .config
Not necessarily faster, though.
- Werner
-- _________________________________________________________________________ / Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch / /_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/- 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:15 EST