openpgp4fpr:3DCAEF800392FB972881C4D6EA48522F41CB3658
This file contains hidden or 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 | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 input_file" >&2 | |
| exit 1 | |
| fi | |
| input_file="$1" | |
| input_dir=$(dirname "$input_file") | |
| input_base=$(basename "${input_file%.*}") |
This file contains hidden or 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
| import csv | |
| import re | |
| import os | |
| import sys | |
| def table_to_csv(args): | |
| if len(args) < 3: | |
| outpath = os.path.join( | |
| os.path.dirname(os.path.abspath(args[1])), |