[MPlayer-users] ad_faad.c compile error
Steven M. Schultz
sms at 2BSD.COM
Fri Feb 7 23:59:47 CET 2003
> From: Moritz Bunkus <moritz at bunkus.org>
>
> > btw why is the above sed expr. wrong? i don't know sed enough but
> > at first look it seems to be correct.
>
> I don't know why, but it works if you replace the + with *...
You beat me to it ;)
I was just going to mention that
sed -e 's/^\([0-9]*\)\.\([0-9]*\).*/\1\2/'
works fine.
echo "1.2 beta" | sed -e 's/^\([0-9]*\)\.\([0-9]*\).*/\1\2/'
12
echo "1.1" | sed -e 's/^\([0-9]*\)\.\([0-9]*\).*/\1\2/'
11
I like it :)
Cheers,
Steven Schultz
More information about the MPlayer-users
mailing list