Created
February 18, 2021 19:45
-
-
Save nmagee/16dbda8e7bf8f053bac7a2726f54cfaf to your computer and use it in GitHub Desktop.
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 | |
set -e | |
## -------------------------------------------------------------- | |
## OKAY - but simple | |
## The script has a proper shebang line and has been | |
## chmod to 755 so it can be executed. | |
script = "./detabify.py" | |
$script | |
## -------------------------------------------------------------- | |
## BETTER | |
## Find a way to pass variables into the python script | |
## so that it's not static. The py script uses the same | |
## name for the output and adds .csv, so only one param | |
## is needed here. The py script will pull the env variable | |
## when it is run. | |
export INPUT="new_mock_data.tsv" | |
env_script="./detabify-env-vars.py" | |
$env_script | |
## Next Steps: | |
## - error handling | |
## - logging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment