This shell script is to find unused service objects in objects_5_0.C and rulebases_5_0.fws files on Checkpoint Firewalls. It searches for unused services both in service groups and the rulebase, then generates the output list as a text file. If you have the copies of files objects_5_0.C and rulebases_5_0.fws, you can run the script in a bash environment.
You can download it from the following link: https://packetstormsecurity.com/files/download/102008/Cleanup_2.zip
Source: https://packetstormsecurity.com/files/102008/Checkpoint-FW-Cleanup-Tool-2.html