This is a slowly growing collection of hopefully useful and reusable shell functions and patterns. https://code.jan.io/jan/jans_shell_utils
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

trap_exit_example.sh 165B

123
  1. # if you run a script that launches other processes, and you want to make sure those processes exit when your script exists, this helps:
  2. trap 'kill $(jobs -p)' EXIT