Your script looks good. I will request @binduak to try it out once, and then merge it. Then we could update the documentation page you suggest to mention this script. Thanks!
Hi @binduak,
the pull request was broken for a week as I stumbled across a strange behaviour of the unexpand command on the attempt to replace the spaces in my file with tabs:
# This command extinguished the contents of the file
unexpand -t 4 -a dev/clone-bahmni-repos.sh > dev/clone-bahmni-repos.sh
# If the output redirection is not in the same file, it will work out :/
unexpand -t 4 -a dev/clone-bahmni-repos.sh.bak > dev/clone-bahmni-repos.sh
Here is the new pull request:
You could paste this command into your terminal, to try the script out:
If jq is not yet install on your laptop, you can install it with brew install jq on MacOS. (Yes, you surely want to have it installed. This tool is awesome for processing JSON in shell scripts.)