#! /bin/bash for i in `ps -ef|grep soffice.bin|awk '{print $2}'` do kill -9 $i done