#!/bin/bash #notice the line above, specifying the shell, that's why comments like this are #on the second line #For this script you just needed to substitute the varible $@ after grep kill -9 `ps aux | grep $@ | cut -b 10-15`