11/03/2006 06:54:00 PM - Grepping CSS
Ok, so here's the situation: I have a stylesheet and want to pull out all of the lines that have a color code and the tags they apply to. Example:
.tabbrowser-strip {
padding-bottom: 0px;
background-color: #C8C8C8;
background-image: url("chrome://browser/skin/pb-1px-hor-gray-line.gif");
background-repeat: repeat-x;
background-position: top left;
border-bottom: 4px solid;
-moz-border-bottom-colors: #535353 #A1A1A1 #BDBDBD #D9D9D9;
}
should come out as
.tabbrowser-strip {
background-color: #C8C8C8;
-moz-border-bottom-colors: #535353 #A1A1A1 #BDBDBD #D9D9D9;
}
It would be even better if I could feed in a directory at the top and have it just rip through the whole tree under it. I was pretty sure that grep was able to pull out C functions, but I can't find it in the man pages.
