![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dual monitor for Intel 82915G & ATI Rage 128 card on FC6, Dell Optiplex Gx520 | TsanChung | UNIX Desktop for Dummies Questions & Answers | 0 | 01-09-2009 12:59 PM |
| Ok I'm a Newb, Please Help | Seeto | UNIX for Dummies Questions & Answers | 3 | 01-29-2006 07:06 AM |
| *nix newb needs books | Shifty | UNIX for Dummies Questions & Answers | 3 | 01-31-2005 04:59 PM |
| help for a newb | h3x | UNIX for Dummies Questions & Answers | 5 | 02-22-2004 08:05 PM |
| 100% newb - please help | Rawdawg | UNIX for Dummies Questions & Answers | 6 | 10-11-2003 11:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SED Newb - Range Rage!
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 Code:
label, b, p .text{
some style stuff
}
would become Code:
b ,p .text{
some style stuff
}
label {custom style stuff}
label can appear above in the following ways Code:
label ,... Code:
label, .... Code:
, label... Code:
,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 Code:
sed 's/,label//g;s/, label//g;;s/label,//g;s/label ,//' test.css Code:
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. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|