On 31.05.2010 15:33, Andrey Rahmatullin wrote:
, 2010 at 07:28:55PM +0400, Yuri Kozlov wrote:
>  >  cat file | sed -e '{ s/background-color:.*;/xxx/g }'
>  >  Как-то так, не?
>  $echo "11111 background-color: #sdfdfdf; 44444444 background-color: black; 
00000" | sed -e 's/background-color: .[^;]*;/xxx/g'
>  $11111 xxx 44444444 xxx 00000
s/\(background-color:\)[^;]*\(;\)/\1xxx\2/g


Отлично работает.

Спасибо.

--
Sincerely,
        Nicholas


--
To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/hu10kc$k0...@dough.gmane.org

Ответить