When developing scripts, the following can save a lot of time switching between terminal windows to re-run your script after making changes. Install inotify-tools using your Linux package manager. The inotifywait command can then watch for a file to be closed after writing and run your command.

while inotifywait -e close_write <path_to_script>; do <command_to_run_script>; done