#!/bin/bash set -eu # FUNCTIONS print_help(){ echo "Convert a TSV file to a plaintext table." echo "Usage: ./tsv2txt_table.sh " } get_column_lengths(){ # Input : tsv file # Output: column lengths awk ' \ BEGIN{FS="\t"} \ { \ for(i=1;i<=NF;i++){ \ if(clen[i]