Would you be interested in publishing the source, as an example to other people who might be tempted to do similar things in bash ?