There's also `flock`, the CLI utility in util-linux, that allows using flocks in shell scripts.
https://man7.org/linux/man-pages/man2/flock.2.html
There's also `flock`, the CLI utility in util-linux, that allows using flocks in shell scripts.