syrius.ml@no-log.org wrote:
Udo Richter udo_richter@gmx.de writes:
syrius.ml@no-log.org wrote:
sed -ne '/define VDRVERSION/ { s/^.*"(.*)".*$/\1/; p }' config.h
Mine is shorter! :P
sed -ne '/define VDRVERSION/s/.*"(.*)".*/\1/p' config.h
awk -F '"' '/define VDRVERSION/ {print $2}' config.h mine ! ;-)
sed -ne"/define VDRVERSION/s/[^0-9.]//gp" config.h Gotcha! ;D
awk -F'"' '/define VDRVERSION/{print$2}' config.h na ! ;-)
Ok, I confess thats the end of sed optimizing in my eyes, awk wins. But it wins with this: awk -F" '/define VDRVERSION/{print$2}' config.h
ha! ;D
Cheers,
Udo
PS: I think we're a little bit annoying off-topic. :)