# lsof -i tcp:8080 | awk 'FNR == 2{print $2}' | xargs kill -9
function killByPort {
local port=$1
echo "killing port ${port}"
lsof -i tcp:${port} | awk 'FNR == 2{print $2}' | xargs kill -9
echo "done . . . "
}
killByPort $1
## use : sh killByPort.sh {port}
# port -> 2020, 8000