Using BASH - Find CSS block or definition and print to screen
Posted
by Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2010-04-20T17:21:13Z
Indexed on
2010/04/20
17:23 UTC
Read the original article
Hit count: 180
I have a number of .css files spread across some directories. I need to find those .css files, read them and if they contain a particular class definition, print it to the screen.
For example, im looking for ".ExampleClass" and it exists in /includes/css/MyStyle.css, i would want the shell command to print
.ExampleClass { color: #ff0000; }
© Stack Overflow or respective owner