[ANNOUNCE] VDR developer version 1.3.47

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



syrius.ml@xxxxxxxxxx wrote:
> Udo Richter <udo_richter@xxxxxx> writes:
> 
>> syrius.ml@xxxxxxxxxx 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. :)


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux