7 Feb
2003
7 Feb
'03
5:44 p.m.
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