#!/bin/bash # 用法: ./kill_vina_jobs.sh 12 N=${1:-12} # 默认为12,若有参数则用参数 for i in $(seq 1 $N); do echo "dkill -n vina_job$i" dkill -n vina_job$i done