[MPlayer-users] ad_faad.c compile error

Mike mikeh at notnowlewis.co.uk
Sat Feb 8 00:36:26 CET 2003


Perhaps

 echo "1.2 beta" | sed  -e 's/^\([0-9]*\)\.\([0-9]*\).*/\1\2/'

is what you're after? (dont flame if I'm wrong though! ;)

mike


>
> Date: Fri, 7 Feb 2003 23:44:49 +0100
> From: Arpi <arpi at thot.banki.hu>
> To: "MPlayer user's list." <mplayer-users at mplayerhq.hu>
> Subject: Re: [MPlayer-users] ad_faad.c compile error
> Message-ID: <200302072244.h17Mintg002591 at mail.mplayerhq.hu>
> In-Reply-To: <200302072137.h17LbgQ01922 at moe.2bsd.com>
> Precedence: list
> Reply-To: "MPlayer user's list." <mplayer-users at mplayerhq.hu>
> Message: 10
>
> Hi,
>
> > echo 1.1 | sed -e 's/^\([0-9]+\)\.\([0-9]+\).*/\1\2/'
> > 1.1
>
> argh
>
> > 	Perhaps using 'tr -d .' instead of sed would work better?
>
> no since it may be '1.2 beta'
>
> maybe |tr -d .|cut -d ' ' -f 1 ?
>
> btw why is the above sed expr. wrong? i don't know sed enough but
> at first look it seems to be correct.
>
>
> A'rpi / Astral & ESP-team
>
> --
> Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
>     "However, many people beg for its inclusion in Debian. Why?" - Gabucino
>   "Because having new software in Debian is good." - Josselin Mouette
> "Because having good software in Debian is new." - Gabucino
>



More information about the MPlayer-users mailing list