1 #!/bin/bash 2 3 db_file=$1 4 5 IFS="|" 6 echo "select count(function), function from function_ptr group by function;" | \ 7 sqlite3 $db_file | sort -n | tail -n 100 | \ 8 9 while read cnt func ; do 10 if [ $cnt -lt 200 ] ; then 11 continue 12 fi 13 echo "delete from function_ptr where function = '$func';" | sqlite3 $db_file 14 done