#!/bin/bash
echo "$0 $$"
##Here do your stuff and redirect the errors to a log file
##if an error is found say using $?, use the following
kill -SIGSTOP $$
##After you'r done correcting your file
##use kill -SIGCONT <pid> on a console, the process shall continue
## Put in a mechanism to retry the last executed command
echo "I am done!!! after SIGSTOP $$"
exit 0
Este é apenas um exemplo, você poderia implementar isso de acordo com suas necessidades.