This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Wrapper for Stata batch-mode which: | |
# -issues an informative error msg and appropriate (possibly non-zero) return code | |
# -allows an implicit -do- when called with just a do file | |
# Requirements: set $STATABATCH (e.g. 'stata-mp -b') | |
# updated from Phil Schumm's version at https://gist.github.com/pschumm/b967dfc7f723507ac4be | |
args=$# # number of args |