Shell script to speed up kink finding tuning