demos/sgrep/run.sh
raw| 1 | #! /bin/sh |
| 2 | |
| 3 | find linux -name "*\.c" -exec ../../spatch.opt -cocci_file intr4.cocci {} \ |
| 4 | -no_show_ctl_text -no_show_transinfo -no_parse_error_msg -no_show_misc \ |
| 5 | -sgrep -save_output_file \; |
| 6 | |
| 7 | find linux -name "*\.cocci_res" -exec ./doit {} \; -print > err_found |
| 8 | |
| 9 | # doit contains cat -n $1 | grep '/\*<\*/' |