I don’t know why I always forget how to do ranges, but I do. I guess it has something to do with the fact that I don’t expect it to be like C at all, and I don’t need to use it often enough to remember.
Got a process that you want to restart in a script but it doesn’t respond nicely? Use the sleep command in your script and check its status after you start, stop, or kill it. After incrementally backing off a few times, waiting longer and longer, I give up and exit …