Nicholas ☫ → To [email protected] @ Mon, May 31, 2010 10:55 +0000

> Как можно заменить все фрагменты, которые начинаются, например, на
> "background-color:" и заканчиваются на ";" ,  на "xxx" ?

cat file | sed -e '{ s/background-color:.*;/xxx/g }'

Как-то так, не?

> Сложность в том, что фрагмент может содержать различное количество
> символов, в зависимости от наличия пробела и способа задания цвета -
> через "color" или "#123456";

-- 
Bright regards, Sergey Korobitsin | http://the-brights.net/ --
  Arta Software, http://arta.kz/  | illuminating and elevating
  xmpp:[email protected]  | the naturalistic worldview

--
"революционный казахстанский продукт ARTA AUTHOR"
  -- http://arta.kz/node/558


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить