This will print all the filenames
and lines which consists of
"<0 to any number of
characters><0 to any
number of characters>
......"
For example, you want to search a
data structure among several header
files where it has been declared
not where it is being used.
If the data structure be XYZ, then
search will be:
#grep }.*XYZ
because you know it might be how
XYZ has been declared,
struct {
.....
.....
} XYZ
You don't know exactly how many
blank characters are there
unless you count them. But when XYZ
will be used it will be
done as follows(for example):
XYZ *xyz;
and you don't want them to find out
as they will be coming
in several header or C files.
This tip generously supported by: dipakb@cdotd.ernet.in NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.