Hi all
First time poster long time lurker. I've been trying to get my head around SED but I think my beginner status is starting to prove too great a hindrence. I have nearly 100 CSS files that I need to modify in such a way that
label, b, p .text{
some style stuff
}
would become
b ,p .text{
some style stuff
}
label {custom style stuff}
label can appear above in the following ways
label ,...
label, ....
, label...
,label...
What I was trying to do was operate the the different flavours of 'label', and then find the next closing tag '}'. I'm testing the finding of 'label' with
sed 's/,label//g;s/, label//g;;s/label,//g;s/label ,//' test.css
test.css
body{
color: #000000;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
margin: 0px;
padding: 0px;
background:white;
/*background-image: url(images/background.gif);*/
}
label ,b, p, .text
{
color: #000000;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
}
label,b, p, .text
{
color: #000000;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
}
b, p, label .text
{
color: #000000;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
}
b, p,label .text
{
color: #000000;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 10px;
}
If anyone could give me some direction I'd really appreciate it.