Skip to content

Instantly share code, notes, and snippets.

@nmagee
Created February 18, 2021 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmagee/16dbda8e7bf8f053bac7a2726f54cfaf to your computer and use it in GitHub Desktop.
Save nmagee/16dbda8e7bf8f053bac7a2726f54cfaf to your computer and use it in GitHub Desktop.
#!/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