If you know the full path for the signal.h file (mine is /usr/include/sys/signal.h) use grep this way :
CODE
grep -i sighandler /usr/include/sys/signal.h
Another slightly more complicated way would be to do :
CODE
set -x
for i in `find / -print | grep signal.h`
do
grep -i sighandler $i
done
set +x
First try the first way, to test your grep skills.
The second way is a funny way.
"set -x" makes the shell to be verbose, issuing each grep command.
the "find" generates the full path for each file named "something.essai.h" and gives it to the $i variable
The "grep" finds the "sighandler" string in the config.h file.
I use this more sophisticated way because there may be several signal.h on your system.
In mine, they are :
QUOTE
# find /usr -print |grep signal.h
/usr/include/signal.h
/usr/include/sys/m_signal.h
/usr/include/sys/signal.h
Comment/Reply (w/o sign-up)